All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hexagon: fix printk format warning in setup.c
@ 2018-05-13  1:48 Randy Dunlap
  2018-05-15 19:03 ` Richard Kuo
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2018-05-13  1:48 UTC (permalink / raw)
  To: LKML, linux-hexagon, Richard Kuo; +Cc: Andrew Morton

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] hexagon: fix printk format warning in setup.c
  2018-05-13  1:48 [PATCH] hexagon: fix printk format warning in setup.c Randy Dunlap
@ 2018-05-15 19:03 ` Richard Kuo
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Kuo @ 2018-05-15 19:03 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: LKML, linux-hexagon, Andrew Morton

On Sat, May 12, 2018 at 06:48:49PM -0700, Randy Dunlap wrote:
> 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.
> 
> 


Acked-by: Richard Kuo <rkuo@codeaurora.org>

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, 
a Linux Foundation Collaborative Project

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-15 19:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-13  1:48 [PATCH] hexagon: fix printk format warning in setup.c Randy Dunlap
2018-05-15 19:03 ` Richard Kuo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.