summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/entry.h
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-12-08 01:08:24 -0800
committerDavid S. Miller <davem@davemloft.net>2008-12-08 01:08:24 -0800
commit81265fd93bc40c7c43fd36796571786ae3df00e0 (patch)
tree69189bc5cd37a98cba8319fcdefa3b0b9fc4adad /arch/sparc/kernel/entry.h
parent7105de84f1cb5ef640bfe4b8b137837c346caab5 (diff)
downloadblackbird-obmc-linux-81265fd93bc40c7c43fd36796571786ae3df00e0.tar.gz
blackbird-obmc-linux-81265fd93bc40c7c43fd36796571786ae3df00e0.zip
sparc: fix sparse warnings in irq_32.c
Fix following sparse warnings: symbol 'static_irqaction' was not declared. Should it be static? symbol 'static_irq_count' was not declared. Should it be static? symbol 'irq_action_lock' was not declared. Should it be static? symbol 'unexpected_irq' was not declared. Should it be static? symbol 'handler_irq' was not declared. Should it be static? returning void-valued expression returning void-valued expression returning void-valued expression symbol 'init_IRQ' was not declared. Should it be static? Warnings were fixed by addding proper declarations and fixing return path of a few functions. There remains several warnings all related to the floppy driver. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/entry.h')
-rw-r--r--arch/sparc/kernel/entry.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sparc/kernel/entry.h b/arch/sparc/kernel/entry.h
index 06db4f18e453..4f53a2395ac6 100644
--- a/arch/sparc/kernel/entry.h
+++ b/arch/sparc/kernel/entry.h
@@ -5,6 +5,9 @@
#include <linux/types.h>
#include <linux/init.h>
+/* irq */
+extern void handler_irq(int irq, struct pt_regs *regs);
+
#ifdef CONFIG_SPARC32
/* traps */
extern void do_hw_interrupt(struct pt_regs *regs, unsigned long type);
@@ -219,7 +222,6 @@ struct ino_bucket {
extern struct ino_bucket *ivector_table;
extern unsigned long ivector_table_pa;
-extern void handler_irq(int irq, struct pt_regs *regs);
extern void init_irqwork_curcpu(void);
extern void __cpuinit sun4v_register_mondo_queues(int this_cpu);
OpenPOWER on IntegriCloud