提交 af2c632e 编写于 作者: C Chunyan Zhang 提交者: Will Deacon

arm64/include/asm: Fixed a warning about 'struct pt_regs'

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.htmlSigned-off-by: NChunyan Zhang <chunyan.zhang@spreadtrum.com>
Signed-off-by: NWill Deacon <will.deacon@arm.com>
上级 06f9eb88
......@@ -3,6 +3,8 @@
#include <asm-generic/irq.h>
struct pt_regs;
extern void migrate_irqs(void);
extern void set_handle_irq(void (*handle_irq)(struct pt_regs *));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册