lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180515190326.GC22553@codeaurora.org>
Date:   Tue, 15 May 2018 14:03:26 -0500
From:   Richard Kuo <rkuo@...eaurora.org>
To:     Randy Dunlap <rdunlap@...radead.org>
Cc:     LKML <linux-kernel@...r.kernel.org>, linux-hexagon@...r.kernel.org,
        Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH] hexagon: fix printk format warning in setup.c

On Sat, May 12, 2018 at 06:48:49PM -0700, Randy Dunlap wrote:
> From: Randy Dunlap <rdunlap@...radead.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@...radead.org>
> Cc: Richard Kuo <rkuo@...eaurora.org>
> Cc: linux-hexagon@...r.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@...eaurora.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ