diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-11-08 09:43:06 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2021-08-03 10:05:01 +0200 |
commit | 8861452b2097bb0b5d0081a1c137fb3870b0a31f (patch) | |
tree | e7c63e52580f128b1cf629f33c116119c7b5b617 /drivers/soc/ixp4xx/ixp4xx-qmgr.c | |
parent | 6ebeca342f96a7c371ed5fe53189dd56fe0c0330 (diff) | |
download | lwn-8861452b2097bb0b5d0081a1c137fb3870b0a31f.tar.gz lwn-8861452b2097bb0b5d0081a1c137fb3870b0a31f.zip |
soc: ixp4xx: fix printing resources
When compile-testing with 64-bit resource_size_t, gcc reports an invalid
printk format string:
In file included from include/linux/dma-mapping.h:7,
from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
drivers/soc/ixp4xx/ixp4xx-npe.c: In function 'ixp4xx_npe_probe':
drivers/soc/ixp4xx/ixp4xx-npe.c:694:18: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Werror=format=]
dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
Use the special %pR format string to print the resources.
Fixes: 0b458d7b10f8 ("soc: ixp4xx: npe: Pass addresses as resources")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/soc/ixp4xx/ixp4xx-qmgr.c')
0 files changed, 0 insertions, 0 deletions