Skip to contentSkip to conversation

removing compilation warning comming from <asm/irq.h>

PATCH New Viresh KUMAR 2 participants 3 messages Mar 26, 2010 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 removing compilation warning comming from <asm/irq.h>

irq.h is using struct pt_regs *. Due to this compilation warning is comming. Removing this warning by adding declaration of struct pt_regs.

---
 arch/arm/include/asm/irq.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/include/asm/irq.h +2 -0
index 328f14a..567c398 100644
@@ -3,6 +3,8 @@
 
 #include <mach/irqs.h>
 
+struct pt_regs;
+
 #ifndef irq_canonicalize
 #define irq_canonicalize(i)	(i)
 #endif
Signature · 1 line
1.6.0.2
#1 lore raw

PATCH 1/1 removing compilation warning comming from <asm/irq.h>

Quoted 3 lines · Viresh KUMAR

irq.h is using struct pt_regs *. Due to this compilation warning is comming. Removing this warning by adding declaration of struct pt_regs.

That's badly placed. Please re-read the file and place it in a more appropriate location.

#2 lore raw

PATCH 1/1 removing compilation warning comming from <asm/irq.h>

Quoted 8 lines · Russell King - ARM Linux
Quoted 3 lines · Viresh KUMAR

irq.h is using struct pt_regs *. Due to this compilation warning is comming. Removing this warning by adding declaration of struct pt_regs.

That's badly placed. Please re-read the file and place it in a more appropriate location.

OK.