diff options
author | Jakub Kicinski <[email protected]> | 2023-06-14 20:52:31 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-06-15 22:54:06 -0700 |
commit | 8f72fb1578a910571b3f25457e3b7855edfac6cf (patch) | |
tree | 8a11de5cc3b0bdf72cf3cede07ffbd7c9d023d8e /tools/perf/scripts/python/stackcollapse.py | |
parent | ca2d49f77ce4531c74ba207b1e07b55f5ced5ab4 (diff) |
eth: fs_enet: fix print format for resource size
Randy reported that linux-next build warns on PowerPC:
drivers/net/ethernet/freescale/fs_enet/mii-fec.c: In function 'fs_enet_mdio_probe':
drivers/net/ethernet/freescale/fs_enet/mii-fec.c:130:50: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
130 | snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", res.start);
| ~^ ~~~~~~~~~
| | |
| | resource_size_t {aka long long unsigned int}
| unsigned int
| %llx
Use the right print format.
Link: https://lore.kernel.org/all/[email protected]/
Reported-by: Randy Dunlap <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Tested-by: Randy Dunlap <[email protected]> # build-tested
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions