From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=67.231.148.174 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796012105; b=5Q99zBcpsU5Ef4jjkuY+bI1OKpoMkyGQjEihzUBY9XrNcq6whvjyzcgQVgdMux4jCwhF SzTbIF9QKHhRzogSFfpYaBly6d23nBvT7V+pmRM1fQg+d3jSJIS9S0qAjnHdnXpAL3igi x2+4ssiZlp0ejHWydoRPh0aaw/iwfsCCwIj8zakHy80rtI5TJEQToBO+jtg28M4vM6FvB 61kUZSziDa554WkUG6hL+tApxkkHNU4MYd3r4TlE/FRYpAb6ReNRk1RmWsDse/f7eA5ok oGvVv/chBXDMxtSpBxpGCG/JxdtnQeZjM+X4HBAoPm4MIaoJv3/sTYvJjjU8dky0B4w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796012105; h=DMARC-Filter:Received:DKIM-Signature:Received:Received:Received: Received:Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To:X-Proofpoint-ORIG-GUID: X-Proofpoint-Spam-Info:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-GUID:X-Authority-Analysis:X-Proofpoint-Virus-Version; bh=fs+xP7J09v9N8CRMZA4kai9zbwEL4Iz2wqYc4PfGUuk=; b=bdqlW4vHnGE6YJX596QgZhcbwRAXGk5bWHxVmjmqRDHx7zG8LG9OHL/EZQoE4KFbF/sR qLwg8UKQVkPPcUtu12FtaZtupUl1abJNm2vkjYor+ams9t6haEQWd6xavWMCWhtAsLaFQ qIvZKq42y5kCb0ukAEkUCsnU3sMtgsSaaYknPR1rxsU4YvBKeVPQ/cEaM+d8nqr20fpT6 y7MJNLBtf6jwwf00HREzlqUDmwcHJ2BD5+XanojI7vijzx75W93QuE9wr485P18A6jV2P +qat9rfRFU3rj2sDgjwacxZk5HGvTaLqxyPDOokzrmOU+6fQLmM9G39jfOwry+JaQiA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass header.d=marvell.com header.i=@marvell.com header.a=rsa-sha256 header.s=pfpt0220 header.b=Q3yySgAS; arc=none smtp.remote-ip=67.231.148.174 Received: from mx0a-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A354E606A327; Mon, 30 Nov 2026 04:15:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A354E606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=marvell.com header.i=@marvell.com header.a=rsa-sha256 header.s=pfpt0220 header.b=Q3yySgAS Received: from pps.filterd (m0431384.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AU0hdoM3762644; Sun, 29 Nov 2026 20:14:41 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=pfpt0220; bh=fs+xP7J09v9N8CRMZA4kai9zb wEL4Iz2wqYc4PfGUuk=; b=Q3yySgASxvjavXYvpj9ZX2d/Pp3dqoSBJiwkjdPDz 8B5zsGXb64YFLRRi/IpQjQWGRuHh+OeHg27lVEA4DOzm34vNm+1k/mFgGF9XhS93 x0ffPqLX3qNsCNjz7Vv7ptsogQVzgS/JOKNRbyA4ZTL3xaCM4T3DjveT9iOySg6/ 4Lfa++mmorIN5mlnS8pSCbmyEM2/3egN6zsDRRQz6LLOAUh/58GT7kwJGA2eZyZn RrGWmsMTVR/i7bhjt10rI0zdv8RVd5saOGgmXYWJ65OBqtQzBfDoS8Byx/QiBcea vXS9r8H3IUnG0jzCWoxQsdjPjrBMbwp9fJnHlpe+VaUsQ== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 4j8m3dhvtt-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 29 Nov 2026 20:14:41 -0800 (PST) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Sun, 29 Nov 2026 20:14:40 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.2562.17 via Frontend Transport; Sun, 29 Nov 2026 20:14:40 -0800 Received: from rkannoth-OptiPlex-7090 (unknown [10.28.36.165]) by maili.marvell.com (Postfix) with SMTP id BC0293F70B4; Sun, 29 Nov 2026 20:14:35 -0800 (PST) Date: Mon, 30 Nov 2026 09:44:34 +0530 From: Ratheesh Kannoth To: Jack Wallner CC: Kees Cook , , , Sunil Goutham , "Geetha sowjanya" , Subbaraya Sundeep , Bharat Bhushan , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Subject: Re: [PATCH 5/8] octeontx2-pf: Use ALIGN() on a DMA address Message-ID: References: <20261129085612.22266-1-jackwallner@gmail.com> <20261129085612.22266-6-jackwallner@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20261129085612.22266-6-jackwallner@gmail.com> X-Proofpoint-ORIG-GUID: ya_l1qMrrGpB6dOZNcAXePLzWdqMGE69 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTMwMDAxNiBTYWx0ZWRfX+/IhdBNUIW1k JqbA5i3r9Edjpnd9zFsDauWNXRe1VFnSyphwATQGPP7gQrSbSNroQ8VvrnX7nZcPcix+imAmf4t wBgQPRiL7metM0H0XDKiN+wIURr9TIQ= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTMwMDAxNiBTYWx0ZWRfX0rIvH8JmJZDY UKus7jC/qnsNoDOkbWOv+eF59uYoT1eEQPvCUevAKK0h2+Hc3pwpFZLp/O6ml4QbzicLBT/Kruc g12hjBB3ovOg/cRPHtUZqDJHxhepA0/ydtv5ZOrdIJ3ugEJUcoa6H4kVeymfvnvKoWxlo7LjbXI JnVjkV6aRmi3OTTdc/RkIGUpltR8Y9Amf5CqoJN+FaESRdB4WUUJ3+xbE5sCnhxPqSMJzhc2baL q9q6Xo6VOUrZnWpo/8bDzzJR7skcfwVDvB0eshqR514mhiWe+YLz4SFNUPgDXQvZ+kxdgE+lmGx ynZ2hX1HWy6KquCNkm6OHM9TIBSKmjRzxUM5X67oTdBc4oYt5OZkibwu74f1DcHfL8Y8US+N2NV Z5oV+2uVjOmb6OdbKwpEgMagiBmYRG8UJcrzHYA68NqrhqExUiOUzkOy8+o6rVwDAXjB8v9sRtk GzvFpOsJ5jcQVv5Erjg== X-Proofpoint-GUID: ya_l1qMrrGpB6dOZNcAXePLzWdqMGE69 X-Authority-Analysis: v=2.4 cv=cY1HPXDM c=1 sm=1 tr=0 ts=6b0cf831 cx=c_pps a=rEv8fa4AjpPjGxpoe8rlIQ==:117 a=rEv8fa4AjpPjGxpoe8rlIQ==:17 a=kj9zAlcOel0A:10 a=zJRp6_cAMcgA:10 a=VkNPw1HP01LnGYTKEx00:22 a=l0iWHRpgs5sLHlkKQ1IR:22 a=TtqV-g6YmW1Jfm2GSLaY:22 a=pGLkceISAAAA:8 a=M5GUcnROAAAA:8 a=EcSuSmsXkZ6MlM45dzIA:9 a=CjuIK1q_8ugA:10 a=OBjm3rFKGHvpk9ecZwUJ:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-30_01,2026-11-27_03,2025-10-01_01 On 2026-11-29 at 14:26:07, Jack Wallner (jackwallner@gmail.com) wrote: > PTR_ALIGN() is meant for pointers. cn10k_outb_cptlf_iq_alloc() passes it > a dma_addr_t. That compiles because PTR_ALIGN() casts its argument to > unsigned long and back. > > A later patch in this series makes PTR_ALIGN() do pointer arithmetic on > its argument so that the compiler can keep track of the object size, > and documents that the argument has to be a pointer. Use ALIGN() for > this address, which works in the type of its argument. > > No functional change: the driver depends on 64BIT, where both macros > give the same value. > > Compile tested only. > > The change and this changelog were written by an AI coding assistant > (Claude, run in Claude Code) at my direction. See the cover letter for > how it was used and tested. > > Signed-off-by: Jack Wallner Acked-by: Ratheesh Kannoth