WSL2-Linux-Kernel/arch/powerpc/platforms/512x
Randy Dunlap 516c27922c 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:00:34 +09:00
..
Kconfig
Makefile
clock-commonclk.c powerpc/mpc512x: fix resource printk format warning 2023-05-11 23:00:34 +09:00
mpc512x.h
mpc512x_generic.c
mpc512x_lpbfifo.c
mpc512x_shared.c
mpc5121_ads.c
mpc5121_ads.h
mpc5121_ads_cpld.c powerpc: Bulk conversion to generic_handle_domain_irq() 2021-08-12 11:39:41 +01:00
pdm360ng.c