Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a38148f authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

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: default avatarThomas Gleixner <tglx@linutronix.de>
parent f48fe81e
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -103,6 +103,7 @@ struct irqaction {


extern irqreturn_t no_action(int cpl, void *dev_id);
extern irqreturn_t no_action(int cpl, void *dev_id);


#ifdef CONFIG_GENERIC_HARDIRQS
extern int __must_check
extern int __must_check
request_threaded_irq(unsigned int irq, irq_handler_t handler,
request_threaded_irq(unsigned int irq, irq_handler_t handler,
		     irq_handler_t thread_fn,
		     irq_handler_t thread_fn,
@@ -115,9 +116,13 @@ request_irq(unsigned int irq, irq_handler_t handler, unsigned long flags,
	return request_threaded_irq(irq, handler, NULL, flags, name, dev);
	return request_threaded_irq(irq, handler, NULL, flags, name, dev);
}
}


#ifdef CONFIG_GENERIC_HARDIRQS
extern void exit_irq_thread(void);
extern void exit_irq_thread(void);
#else
#else

extern int __must_check
request_irq(unsigned int irq, irq_handler_t handler, unsigned long flags,
	    const char *name, void *dev);

static inline void exit_irq_thread(void) { }
static inline void exit_irq_thread(void) { }
#endif
#endif