kernel_samsung_a53x/drivers/net/ethernet/freescale
Simon Horman 2d87b87f2e net: ethernet: fs_enet: Use %pa to format resource_size_t
[ Upstream commit 45fe45fada261e1e83fce2a07fa22835aec1cf0a ]

The correct format string for resource_size_t is %pa which
acts on the address of the variable to be formatted [1].

[1] https://elixir.bootlin.com/linux/v6.11.3/source/Documentation/core-api/printk-formats.rst#L229

Introduced by commit 9d9326d3bc0e ("phy: Change mii_bus id field to a string")

Flagged by gcc-14 as:

drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c: In function 'fs_mii_bitbang_init':
drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c:126:46: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
  126 |         snprintf(bus->id, MII_BUS_ID_SIZE, "%x", res.start);
      |                                             ~^   ~~~~~~~~~
      |                                              |      |
      |                                              |      resource_size_t {aka long long unsigned int}
      |                                              unsigned int
      |                                             %llx

No functional change intended.
Compile tested only.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Closes: https://lore.kernel.org/netdev/711d7f6d-b785-7560-f4dc-c6aad2cce99@linux-m68k.org/
Signed-off-by: Simon Horman <horms@kernel.org>
Reviewed-by: Daniel Machon <daniel.machon@microchip.com>
Link: https://patch.msgid.link/20241014-net-pa-fmt-v1-2-dcc9afb8858b@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-17 13:24:30 +01:00
..
dpaa Revert "net: dpaa: avoid on-stack arrays of NR_CPUS elements" 2024-11-24 00:23:39 +01:00
dpaa2 net/dpaa2: Avoid explicit cpumask var allocation on stack 2024-11-19 14:19:32 +01:00
enetc net: enetc: set MAC address to the VF net_device 2024-11-30 02:33:22 +01:00
fman
fs_enet net: ethernet: fs_enet: Use %pa to format resource_size_t 2024-12-17 13:24:30 +01:00
fec.h
fec_main.c Revert "net: fec: Refactor: #define magic constants" 2024-11-24 00:23:56 +01:00
fec_mpc52xx.c
fec_mpc52xx.h
fec_mpc52xx_phy.c net: fec_mpc52xx_phy: Use %pa to format resource_size_t 2024-12-17 13:24:30 +01:00
fec_ptp.c Revert "net: fec: Stop PPS on driver remove" 2024-11-24 00:23:55 +01:00
fsl_pq_mdio.c
gianfar.c
gianfar.h
gianfar_ethtool.c
Kconfig
Makefile
ucc_geth.c
ucc_geth.h
ucc_geth_ethtool.c
xgmac_mdio.c