powerpc/mpc512x: fix resource printk format warning
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 23 Feb 2023 07:01:13 +0000 (23:01 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 30 Mar 2023 12:35:43 +0000 (23:35 +1100)
commit7538c97e2b80ff6b7a8ea2ecf16a04355461b439
tree3bd8740b528066807a54ad588b922130cfde7c94
parente7299f961fe5e4496db0bfaa9e819f5e97f3846b
powerpc/mpc512x: fix resource printk format warning

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: 01f25c371658 ("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
arch/powerpc/platforms/512x/clock-commonclk.c