acrn-kernel/arch/powerpc/platforms/512x
Randy Dunlap 2f40b71e46 powerpc/mpc512x: fix resource printk format warning
[ Upstream commit 7538c97e2b ]

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

../arch/powerpc/platforms/512x/clock-commonclk.c: In function 'mpc5121_clk_provide_backwards_compat':
../arch/powerpc/platforms/512x/clock-commonclk.c:989:44: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Werror=format=]
  989 |         snprintf(devname, sizeof(devname), "%08x.%s", res.start, np->name); \
      |                                            ^~~~~~~~~  ~~~~~~~~~
      |                                                          |
      |                                                          resource_size_t {aka long long unsigned int}

Prevents 24 such warnings.

Fixes: 01f25c3716 ("clk: mpc512x: add backwards compat to the CCF code")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230223070116.660-2-rdunlap@infradead.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:03:31 +09:00
..
Kconfig Kconfig file consolidation for v4.21 2018-12-29 13:40:29 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
clock-commonclk.c powerpc/mpc512x: fix resource printk format warning 2023-05-11 23:03:31 +09:00
mpc512x.h powerpc/512x: Add __init attribute to eligible functions 2021-12-23 22:33:19 +11:00
mpc512x_generic.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
mpc512x_lpbfifo.c powerpc/512x: Use dma_request_chan() instead dma_request_slave_channel() 2020-01-06 16:25:29 +11:00
mpc512x_shared.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
mpc5121_ads.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
mpc5121_ads.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
mpc5121_ads_cpld.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
pdm360ng.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 40 2019-05-24 17:27:12 +02:00