diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-03-24 15:27:39 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-03-24 15:34:24 -0400 |
commit | 3a38148f0488069cadb75c4a6909954072d648bf (patch) | |
tree | d1f6a2b9dfe7b6ee419772fb055999725a3d906a | |
parent | f48fe81e5b032914183e9a17052313720c2cac56 (diff) |
genirq: provide old request_irq() for CONFIG_GENERIC_HARDIRQ=n
Impact: Undo compile breakage for archs with CONFIG_GENERIC_HARDIRQ=n
The threaded interrupt handler patches changed request_irq from extern
to inline. Architectures which do not use the generic irq code still
have request_irq() as a global function and therefor fail to compile.
Keep the extern declaration for CONFIG_GENERIC_HARDIRQ=n
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | include/linux/interrupt.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 266a5f5f57cc..7e63b824833f 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h | |||
@@ -103,6 +103,7 @@ struct irqaction { | |||
103 | 103 | ||
104 | extern irqreturn_t no_action(int cpl, void *dev_id); | 104 | extern irqreturn_t no_action(int cpl, void *dev_id); |
105 | 105 | ||
106 | #ifdef CONFIG_GENERIC_HARDIRQS | ||
106 | extern int __must_check | 107 | extern int __must_check |
107 | request_threaded_irq(unsigned int irq, irq_handler_t handler, | 108 | request_threaded_irq(unsigned int irq, irq_handler_t handler, |
108 | irq_handler_t thread_fn, | 109 | irq_handler_t thread_fn, |
@@ -115,9 +116,13 @@ request_irq(unsigned int irq, irq_handler_t handler, unsigned long flags, | |||
115 | return request_threaded_irq(irq, handler, NULL, flags, name, dev); | 116 | return request_threaded_irq(irq, handler, NULL, flags, name, dev); |
116 | } | 117 | } |
117 | 118 | ||
118 | #ifdef CONFIG_GENERIC_HARDIRQS | ||
119 | extern void exit_irq_thread(void); | 119 | extern void exit_irq_thread(void); |
120 | #else | 120 | #else |
121 | |||
122 | extern int __must_check | ||
123 | request_irq(unsigned int irq, irq_handler_t handler, unsigned long flags, | ||
124 | const char *name, void *dev); | ||
125 | |||
121 | static inline void exit_irq_thread(void) { } | 126 | static inline void exit_irq_thread(void) { } |
122 | #endif | 127 | #endif |
123 | 128 | ||