Skip to contentSkip to conversation

ARM: arch.h: Include irq.h

PATCH New Fabio Estevam 2 participants 2 messages Nov 9, 2011 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

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
index 7d19425..71f8bec 100644
@@ -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
#1 lore raw

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
index 7d19425..71f8bec 100644
@@ -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.