diff options
author | Randy Dunlap <[email protected]> | 2023-02-22 23:01:13 -0800 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2023-03-30 23:35:43 +1100 |
commit | 7538c97e2b80ff6b7a8ea2ecf16a04355461b439 (patch) | |
tree | 3bd8740b528066807a54ad588b922130cfde7c94 /arch/powerpc/sysdev/tsi108_pci.c | |
parent | e7299f961fe5e4496db0bfaa9e819f5e97f3846b (diff) |
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 <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'arch/powerpc/sysdev/tsi108_pci.c')
0 files changed, 0 insertions, 0 deletions