]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: dpaa_eth: extract hash using __be32 pointer in rx_default_dqrr()
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 29 Oct 2024 16:43:17 +0000 (18:43 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 5 Nov 2024 02:44:43 +0000 (18:44 -0800)
commit0a746cf8bb6df43566c345f334ca1b931f926449
tree25d6d6e8dca2371ac46dbfed12bbe7d29d270dae
parent81f8ee2823f321c297d9d41f7e6b8fc81750b4ee
net: dpaa_eth: extract hash using __be32 pointer in rx_default_dqrr()

Sparse provides the following output:

warning: cast to restricted __be32

This is a harmless warning due to the fact that we dereference the hash
stored in the FD using an incorrect type annotation. Suppress the
warning by using the correct __be32 type instead of u32. No functional
change.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Breno Leitao <leitao@debian.org>
Acked-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Link: https://patch.msgid.link/20241029164317.50182-4-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c