linux-yocto/drivers/net/ethernet/freescale/dpaa
Vladimir Oltean 0144c06c58 net: dpaa_eth: print FD status in CPU endianness in dpaa_eth_fd tracepoint
Sparse warns:

note: in included file (through ../include/trace/trace_events.h,
../include/trace/define_trace.h,
../drivers/net/ethernet/freescale/dpaa/dpaa_eth_trace.h):
warning: incorrect type in assignment (different base types)
   expected unsigned int [usertype] fd_status
   got restricted __be32 const [usertype] status

We take struct qm_fd :: status, store it and print it as an u32,
though it is a big endian field. We should print the FD status in
CPU endianness for ease of debug and consistency between PowerPC and
Arm systems.

Though it is a not often used debug feature, it is best to treat it as
a bug and backport the format change to all supported stable kernels,
for consistency.

Fixes: eb11ddf36e ("dpaa_eth: add trace points")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Link: https://patch.msgid.link/20241029163105.44135-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-10-31 19:18:46 -07:00
..
dpaa_eth_sysfs.c net: dpaa: Fix compilation Warning 2024-07-13 15:52:49 -07:00
dpaa_eth_trace.h net: dpaa_eth: print FD status in CPU endianness in dpaa_eth_fd tracepoint 2024-10-31 19:18:46 -07:00
dpaa_eth.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-09-12 17:11:24 -07:00
dpaa_eth.h net: dpaa: eliminate NR_CPUS dependency in egress_fqs[] and conf_fqs[] 2024-07-14 20:26:16 -07:00
dpaa_ethtool.c Merge branch 'net-make-timestamping-selectable' 2024-07-15 08:02:30 -07:00
Kconfig net: dpaa: Convert to phylink 2022-10-19 13:25:09 +01:00
Makefile