genirq: Split out flow handler typedefs into seperate header file
authorThomas Gleixner <tglx@linutronix.de>
Tue, 11 Nov 2014 20:58:34 +0000 (21:58 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 23 Nov 2014 12:01:46 +0000 (13:01 +0100)
Required to avoid circular include dependencies.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/irq.h
include/linux/irqhandler.h [new file with mode: 0644]

index 566b1e541323492ee3ff1ca04cdc09e990cfd07a..677482bd8b9211b7612cbdad7a6a62bd1e12c2a2 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/spinlock.h>
 #include <linux/cpumask.h>
 #include <linux/gfp.h>
+#include <linux/irqhandler.h>
 #include <linux/irqreturn.h>
 #include <linux/irqnr.h>
 #include <linux/errno.h>
 
 struct seq_file;
 struct module;
-struct irq_desc;
-struct irq_data;
 struct msi_msg;
-typedef        void (*irq_flow_handler_t)(unsigned int irq,
-                                           struct irq_desc *desc);
-typedef        void (*irq_preflow_handler_t)(struct irq_data *data);
 
 /*
  * IRQ line status.
diff --git a/include/linux/irqhandler.h b/include/linux/irqhandler.h
new file mode 100644 (file)
index 0000000..62d5430
--- /dev/null
@@ -0,0 +1,14 @@
+#ifndef _LINUX_IRQHANDLER_H
+#define _LINUX_IRQHANDLER_H
+
+/*
+ * Interrupt flow handler typedefs are defined here to avoid circular
+ * include dependencies.
+ */
+
+struct irq_desc;
+struct irq_data;
+typedef        void (*irq_flow_handler_t)(unsigned int irq, struct irq_desc *desc);
+typedef        void (*irq_preflow_handler_t)(struct irq_data *data);
+
+#endif