Messages in this thread Patch in this message | | | From | Randy Dunlap <> | Subject | [PATCH] hexagon: fix printk format warning in setup.c | Date | Sat, 12 May 2018 18:48:49 -0700 |
| |
From: Randy Dunlap <rdunlap@infradead.org>
Fix printk format warning in hexagon/kernel/setup.c:
../arch/hexagon/kernel/setup.c: In function 'setup_arch': ../arch/hexagon/kernel/setup.c:69:2: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat]
where: extern unsigned long __phys_offset; #define PHYS_OFFSET __phys_offset
Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Richard Kuo <rkuo@codeaurora.org> Cc: linux-hexagon@vger.kernel.org --- arch/hexagon/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-next-20180510.orig/arch/hexagon/kernel/setup.c +++ linux-next-20180510/arch/hexagon/kernel/setup.c @@ -66,7 +66,7 @@ void __init setup_arch(char **cmdline_p) */ __vmsetvec(_K_VM_event_vector); - printk(KERN_INFO "PHYS_OFFSET=0x%08x\n", PHYS_OFFSET); + printk(KERN_INFO "PHYS_OFFSET=0x%08lx\n", PHYS_OFFSET); /* * Simulator has a few differences from the hardware.
| |