ARM: 7155/1: arch.h: Declare 'pt_regs' locally
authorFabio Estevam <festevam@gmail.com>
Wed, 9 Nov 2011 18:13:43 +0000 (19:13 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 9 Nov 2011 21:53:36 +0000 (21:53 +0000)
commit1a1f2be2a4d7f6f538169dca534c94b221b21923
treec9ba32e12848b927c5f9d8a9269f58378f917fbd
parent5fc86281b9eba5eb9cfab999bcb00deb335da762
ARM: 7155/1: arch.h: Declare 'pt_regs' locally

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@canonical.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/mach/arch.h