Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

genirq: Split out flow handler typedefs into seperate header file

Required to avoid circular include dependencies.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

+15 -5
+1 -5
include/linux/irq.h
··· 15 15 #include <linux/spinlock.h> 16 16 #include <linux/cpumask.h> 17 17 #include <linux/gfp.h> 18 + #include <linux/irqhandler.h> 18 19 #include <linux/irqreturn.h> 19 20 #include <linux/irqnr.h> 20 21 #include <linux/errno.h> ··· 28 27 29 28 struct seq_file; 30 29 struct module; 31 - struct irq_desc; 32 - struct irq_data; 33 30 struct msi_msg; 34 - typedef void (*irq_flow_handler_t)(unsigned int irq, 35 - struct irq_desc *desc); 36 - typedef void (*irq_preflow_handler_t)(struct irq_data *data); 37 31 38 32 /* 39 33 * IRQ line status.
+14
include/linux/irqhandler.h
··· 1 + #ifndef _LINUX_IRQHANDLER_H 2 + #define _LINUX_IRQHANDLER_H 3 + 4 + /* 5 + * Interrupt flow handler typedefs are defined here to avoid circular 6 + * include dependencies. 7 + */ 8 + 9 + struct irq_desc; 10 + struct irq_data; 11 + typedef void (*irq_flow_handler_t)(unsigned int irq, struct irq_desc *desc); 12 + typedef void (*irq_preflow_handler_t)(struct irq_data *data); 13 + 14 + #endif