[PATCH v2] ARM: arch.h: Declare 'pt_regs' locally

Russell King - ARM Linux linux at arm.linux.org.uk
Wed Nov 9 12:56:35 EST 2011


On Wed, Nov 09, 2011 at 10:10:48AM -0200, Fabio Estevam wrote:
> Fix the following warning when building imx_v4_v5_defconfig target:
> 
>   CC      arch/arm/mach-imx/mach-imx27ipcam.o
> In file included from arch/arm/mach-imx/mach-imx27ipcam.c:18:
> /home/fabio/linus/linux-2.6/arch/arm/include/asm/mach/arch.h:47: warning: 'struct pt_regs' declared inside parameter list
> /home/fabio/linus/linux-2.6/arch/arm/include/asm/mach/arch.h:47: warning: its scope is only this definition or declaration, which is probably not what you want
> arch/arm/mach-imx/mach-imx27ipcam.c:78: warning: initialization from incompatible pointer type
> 
> Declare 'struct pt_regs' locally.
> 
> Cc: Eric Miao <eric.miao at canonical.com>
> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>

Yup.  Can go to the patch system, thanks.



More information about the linux-arm-kernel mailing list