acrn-kernel/arch/powerpc/platforms/embedded6xx
Randy Dunlap 89e458456c powerpc/wii: fix resource printk format warnings
[ Upstream commit 7b69600d4d ]

Use "%pa" format specifier for resource_size_t to avoid compiler
printk format warnings.

../arch/powerpc/platforms/embedded6xx/flipper-pic.c: In function 'flipper_pic_init':
../include/linux/kern_levels.h:5:25: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'resource_size_t' {aka 'long long unsigned int'} [-Werror=format=]
../arch/powerpc/platforms/embedded6xx/flipper-pic.c:148:9: note: in expansion of macro 'pr_info'
  148 |         pr_info("controller at 0x%08x mapped to 0x%p\n", res.start, io_base);
      |         ^~~~~~~

../arch/powerpc/platforms/embedded6xx/hlwd-pic.c: In function 'hlwd_pic_init':
../include/linux/kern_levels.h:5:25: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'resource_size_t' {aka 'long long unsigned int'} [-Werror=format=]
../arch/powerpc/platforms/embedded6xx/hlwd-pic.c:174:9: note: in expansion of macro 'pr_info'
  174 |         pr_info("controller at 0x%08x mapped to 0x%p\n", res.start, io_base);
      |         ^~~~~~~

../arch/powerpc/platforms/embedded6xx/wii.c: In function 'wii_ioremap_hw_regs':
../include/linux/kern_levels.h:5:25: error: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'resource_size_t' {aka 'long long unsigned int'} [-Werror=format=]
../arch/powerpc/platforms/embedded6xx/wii.c:77:17: note: in expansion of macro 'pr_info'
   77 |                 pr_info("%s at 0x%08x mapped to 0x%p\n", name,
      |                 ^~~~~~~

Fixes: 028ee972f0 ("powerpc: gamecube/wii: flipper interrupt controller support")
Fixes: 9c21025c78 ("powerpc: wii: hollywood interrupt controller support")
Fixes: 5a7ee3198d ("powerpc: wii: platform support")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230223070116.660-3-rdunlap@infradead.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:03:31 +09:00
..
Kconfig powerpc: Rename PPC_NATIVE to PPC_HASH_MMU_NATIVE 2021-12-02 22:57:22 +11:00
Makefile powerpc/embedded6xx: Remove C2K board support 2018-06-04 00:39:22 +10:00
flipper-pic.c powerpc/wii: fix resource printk format warnings 2023-05-11 23:03:31 +09:00
flipper-pic.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
gamecube.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
hlwd-pic.c powerpc/wii: fix resource printk format warnings 2023-05-11 23:03:31 +09:00
hlwd-pic.h powerpc/embedded6xx: Add __init attribute to eligible functions 2021-12-23 22:33:17 +11:00
holly.c powerpc/embedded6xx: Add missing of_node_put()s 2022-09-05 17:28:26 +10:00
linkstation.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
ls_uart.c powerpc/embedded6xx/ls_uart: Add missing of_node_put() 2022-09-05 17:28:26 +10:00
mpc10x.h powerpc32: remove ioremap_base 2016-03-11 17:18:02 -06:00
mpc7448_hpc2.c powerpc/embedded6xx: Add missing of_node_put()s 2022-09-05 17:28:26 +10:00
mvme5100.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
storcenter.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
usbgecko_udbg.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
usbgecko_udbg.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
wii.c powerpc/wii: fix resource printk format warnings 2023-05-11 23:03:31 +09:00