aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/irq_32.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-12-08 04:08:24 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-08 04:08:24 -0500
commit81265fd93bc40c7c43fd36796571786ae3df00e0 (patch)
tree69189bc5cd37a98cba8319fcdefa3b0b9fc4adad /arch/sparc/kernel/irq_32.c
parent7105de84f1cb5ef640bfe4b8b137837c346caab5 (diff)
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/irq_32.c')
-rw-r--r--arch/sparc/kernel/irq_32.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/sparc/kernel/irq_32.c b/arch/sparc/kernel/irq_32.c
index 93e1d1c65290..f3488c45d57a 100644
--- a/arch/sparc/kernel/irq_32.c
+++ b/arch/sparc/kernel/irq_32.c
@@ -46,6 +46,7 @@
46#include <asm/cacheflush.h> 46#include <asm/cacheflush.h>
47#include <asm/irq_regs.h> 47#include <asm/irq_regs.h>
48 48
49#include "kernel.h"
49#include "irq.h" 50#include "irq.h"
50 51
51#ifdef CONFIG_SMP 52#ifdef CONFIG_SMP
@@ -592,19 +593,19 @@ EXPORT_SYMBOL(request_irq);
592 593
593void disable_irq_nosync(unsigned int irq) 594void disable_irq_nosync(unsigned int irq)
594{ 595{
595 return __disable_irq(irq); 596 __disable_irq(irq);
596} 597}
597EXPORT_SYMBOL(disable_irq_nosync); 598EXPORT_SYMBOL(disable_irq_nosync);
598 599
599void disable_irq(unsigned int irq) 600void disable_irq(unsigned int irq)
600{ 601{
601 return __disable_irq(irq); 602 __disable_irq(irq);
602} 603}
603EXPORT_SYMBOL(disable_irq); 604EXPORT_SYMBOL(disable_irq);
604 605
605void enable_irq(unsigned int irq) 606void enable_irq(unsigned int irq)
606{ 607{
607 return __enable_irq(irq); 608 __enable_irq(irq);
608} 609}
609 610
610EXPORT_SYMBOL(enable_irq); 611EXPORT_SYMBOL(enable_irq);