ARM: arch.h: Include irq.h
PATCH 1/1 ARM: arch.h: Include irq.h
From: Fabio Estevam <[email protected]>
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
'struct pt_regs' is declared in arch/arm/include/asm/irq.h, so include this header.
--- arch/arm/include/asm/mach/arch.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/include/asm/mach/arch.h +1 -0
@@ -7,6 +7,7 @@* it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ +#include <asm/mach/irq.h> #ifndef __ASSEMBLY__
Signature · 1 line
1.7.1
PATCH 1/1 ARM: arch.h: Include irq.h
arch/arm/include/asm/mach/arch.h line 12
Quoted 11 lines · Fabio Estevam
arch/arm/include/asm/mach/arch.h +1
-0@@ -7,6 +7,7 @@* it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ +#include <asm/mach/irq.h> #ifndef __ASSEMBLY__
Just add a 'struct pt_regs;' declaration along side the other structure declarations. We don't need to increase the rats nest of includes to fix this.