diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-11-09 21:28:15 -0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-10 08:41:47 +0100 |
commit | 19f47c634ea8c5a10ff7bb1a08c52fd0f49bc54c (patch) | |
tree | d278dcf8ffe87e4ef4b90331dcf60ef323380084 /arch/x86/include | |
parent | 87135d92b4ae73208c53242f3cfec5b20b772cb3 (diff) | |
download | linux-19f47c634ea8c5a10ff7bb1a08c52fd0f49bc54c.tar.gz linux-19f47c634ea8c5a10ff7bb1a08c52fd0f49bc54c.tar.bz2 linux-19f47c634ea8c5a10ff7bb1a08c52fd0f49bc54c.zip |
x86: x86_32 has its own irq_regs definition
Impact: cleanup
Arches that have their own irq_regs definition are expected to
define ARCH_HAS_OWN_IRQ_REGS or else a generic (unused) set
will also be defined in lib/irq_regs.c
Sparse noticed the unused generic one had no prototype:
lib/irq_regs.c:15:1: warning: symbol 'per_cpu____irq_regs' was not declared. Should it be static?
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/irq_regs_32.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/irq_regs_32.h b/arch/x86/include/asm/irq_regs_32.h index af2f02d27fc7..86afd7473457 100644 --- a/arch/x86/include/asm/irq_regs_32.h +++ b/arch/x86/include/asm/irq_regs_32.h @@ -9,6 +9,8 @@ #include <asm/percpu.h> +#define ARCH_HAS_OWN_IRQ_REGS + DECLARE_PER_CPU(struct pt_regs *, irq_regs); static inline struct pt_regs *get_irq_regs(void) |