From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from imap4.hz.codethink.co.uk (imap4.hz.codethink.co.uk [188.40.203.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9FCD13AFD16; Mon, 22 Jun 2026 14:37:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.203.114 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782139059; cv=none; b=mYh4HmzVWzFZgZsQt51SipLYkmQBLLwTwvSpVMPsnGjW99Hi6eRnXCakQ6iXkoYRvYc3bDnNS9R7jyufYJKXA3fivpStrn9oMpZfKGc2nI09ECGW+FlBO5hiRpBUliX9ZYXGtKg55OQvfthD5qyGwtRbFcDXe2bpHMvFKllzcJI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782139059; c=relaxed/simple; bh=DDQCwvPIno1RwvT/9XpgR+AZHAnpICCgVyFNZg4C5M0=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=l3zglF4wBFVaiM2fZPK2rsjeAQ8/zSt06soe9wNyoPzLeEXnsH2DcxE5/dE3gMIWIvcaOW8yNbgOion/BkHEE92Er4ifjGLT8/aJCVnzv399Xad3ZGAHCX5SoN4oPn8DgcIOn2mxICUGjDw3As+0EecKXtldBg+/S3IZudbZxQA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=codethink.co.uk; spf=pass smtp.mailfrom=codethink.com; dkim=pass (2048-bit key) header.d=codethink.co.uk header.i=@codethink.co.uk header.b=nWTKzmrd; arc=none smtp.client-ip=188.40.203.114 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=codethink.co.uk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=codethink.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=codethink.co.uk header.i=@codethink.co.uk header.b="nWTKzmrd" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codethink.co.uk; s=imap4-20230908; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:To:From:Reply-To:Cc:In-Reply-To: References; bh=byJmp20ozUXMyoKY5EOWJZujkHr16poyflFSxhdQvxg=; b=nWTKzmrd4iK95s PDDmh2o+j1xgFfJJKO8SOtPNODbt39YHDkQunnC/Szi8IjIUfQmLP4J5lMC1W62l95nWo6ce/nHHH +s1QAQcRoFOgkeIZIAo05FBsGdL1pM50bMAsQ34a0e3i6o3d30avo/cT9DRzjosUZXpBYx5m9IXTO ODvXdNhXY/gZ5y6nzMnwsARJI3tZf6Gd0uQPpiQORYDuIMCs5M1gDjuxUy/ydxoS31CcU8FbJskV4 sDuBmcWL+4cn7J5W0+ARrFfrkyXrydZ1jguzI+OsgQuJ9NMgRiXp0LXgiZdYQYOT6wRV3htGM/XJs pfRdirhSLo68+Xzw7VdA==; Received: from [167.98.27.226] (helo=rainbowdash) by imap4.hz.codethink.co.uk with esmtpsa (Exim 4.94.2 #2 (Debian)) id 1wbflu-00EqWl-D2; Mon, 22 Jun 2026 15:37:10 +0100 Received: from ben by rainbowdash with local (Exim 4.99.4) (envelope-from ) id 1wbfls-000000025LX-32iL; Mon, 22 Jun 2026 15:37:08 +0100 From: Ben Dooks To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , "Russell King \(Oracle\)" , Ben Dooks , Maxime Chevallier , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: stmmac: fix missed le32_to_cpu() Date: Mon, 22 Jun 2026 15:37:07 +0100 Message-Id: <20260622143707.497198-1-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.37.2.352.g3c44437643 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: srv_ts003@codethink.com The print in ndesc_display_ring() sends the des2 and des3 to the pr_info() without passing them through the relevant conversion to cpu order. Fix the (prototype) sparse warnings by using le32_to_cpu(): drivers/net/ethernet/stmicro/stmmac/norm_desc.c:258:17: warning: incorrect type in argument 6 (different base types) drivers/net/ethernet/stmicro/stmmac/norm_desc.c:258:17: expected unsigned int drivers/net/ethernet/stmicro/stmmac/norm_desc.c:258:17: got restricted __le32 [usertype] des2 drivers/net/ethernet/stmicro/stmmac/norm_desc.c:258:17: warning: incorrect type in argument 7 (different base types) drivers/net/ethernet/stmicro/stmmac/norm_desc.c:258:17: expected unsigned int drivers/net/ethernet/stmicro/stmmac/norm_desc.c:258:17: got restricted __le32 [usertype] des3 Signed-off-by: Ben Dooks --- drivers/net/ethernet/stmicro/stmmac/norm_desc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/norm_desc.c b/drivers/net/ethernet/stmicro/stmmac/norm_desc.c index c4b613564f87..74c9b7b1fe8f 100644 --- a/drivers/net/ethernet/stmicro/stmmac/norm_desc.c +++ b/drivers/net/ethernet/stmicro/stmmac/norm_desc.c @@ -258,7 +258,7 @@ static void ndesc_display_ring(void *head, unsigned int size, bool rx, pr_info("%03d [%pad]: 0x%x 0x%x 0x%x 0x%x", i, &dma_addr, (unsigned int)x, (unsigned int)(x >> 32), - p->des2, p->des3); + le32_to_cpu(p->des2), le32_to_cpu(p->des3)); p++; } pr_info("\n"); -- 2.37.2.352.g3c44437643