Skip to content

Commit 1a1f2be

Browse files
fabioestevamRussell King
authored andcommitted
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 <[email protected]> Signed-off-by: Fabio Estevam <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent 5fc8628 commit 1a1f2be

File tree

1 file changed

+1
-0
lines changed
  • arch/arm/include/asm/mach

1 file changed

+1
-0
lines changed

arch/arm/include/asm/mach/arch.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
struct tag;
1414
struct meminfo;
1515
struct sys_timer;
16+
struct pt_regs;
1617

1718
struct machine_desc {
1819
unsigned int nr; /* architecture number */

0 commit comments

Comments
 (0)