All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64/include/asm: Fixed a warning about 'struct pt_regs'
@ 2014-12-04 11:23 ` Chunyan Zhang
  0 siblings, 0 replies; 10+ messages in thread
From: Chunyan Zhang @ 2014-12-04 11:23 UTC (permalink / raw)
  To: linux-arm-kernel

If I include asm/irq.h on the top of my code, and set ARCH=arm64,
I'll get a compile warning, details are below:
warning: ?struct pt_regs?
declared inside parameter list [enabled by default]

This patch is suggested by Arnd, see:
http://lists.infradead.org/pipermail/linux-arm-kernel/2014-December/308270.html

Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com>
---
 arch/arm64/include/asm/irq.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/include/asm/irq.h b/arch/arm64/include/asm/irq.h
index e1f7ecd..acedc7e 100644
--- a/arch/arm64/include/asm/irq.h
+++ b/arch/arm64/include/asm/irq.h
@@ -3,6 +3,8 @@
 
 #include <asm-generic/irq.h>
 
+struct pt_regs;
+
 extern void (*handle_arch_irq)(struct pt_regs *);
 extern void migrate_irqs(void);
 extern void set_handle_irq(void (*handle_irq)(struct pt_regs *));
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [PATCH] arm64/include/asm: Fixed a warning about 'struct pt_regs'
@ 2014-12-04 11:24 ` Chunyan Zhang
  0 siblings, 0 replies; 10+ messages in thread
From: Chunyan Zhang @ 2014-12-04 11:24 UTC (permalink / raw)
  To: linux-arm-kernel

If I include asm/irq.h on the top of my code, and set ARCH=arm64,
I'll get a compile warning, details are below:
warning: ?struct pt_regs?
declared inside parameter list [enabled by default]

This patch is suggested by Arnd, see:
http://lists.infradead.org/pipermail/linux-arm-kernel/2014-December/308270.html

Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com>
---
 arch/arm64/include/asm/irq.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/include/asm/irq.h b/arch/arm64/include/asm/irq.h
index e1f7ecd..acedc7e 100644
--- a/arch/arm64/include/asm/irq.h
+++ b/arch/arm64/include/asm/irq.h
@@ -3,6 +3,8 @@
 
 #include <asm-generic/irq.h>
 
+struct pt_regs;
+
 extern void (*handle_arch_irq)(struct pt_regs *);
 extern void migrate_irqs(void);
 extern void set_handle_irq(void (*handle_irq)(struct pt_regs *));
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-12-04 12:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <zcyirq.h>
2014-12-04  6:29 ` [PATCH] arm64/include/asm: Fixed a warning about 'struct pt_regs' Chunyan Zhang
2014-12-04  6:29   ` Chunyan Zhang
2014-12-04 10:11   ` Will Deacon
2014-12-04 10:11     ` Will Deacon
2014-12-04 11:23 Chunyan Zhang
2014-12-04 11:23 ` Chunyan Zhang
2014-12-04 12:37 ` Lyra Zhang
2014-12-04 12:37   ` Lyra Zhang
  -- strict thread matches above, loose matches on Subject: below --
2014-12-04 11:24 Chunyan Zhang
2014-12-04 11:24 ` Chunyan Zhang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.