aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2014-11-11 15:58:34 -0500
committerThomas Gleixner <tglx@linutronix.de>2014-11-23 07:01:46 -0500
commit75ffc0075007ca649131a2c42863ce6995d9bf80 (patch)
treea983e4adb9a78bb02304f9d5e6499c9089ec400d
parent2cb625478f8cea0f72b565007a35e1eb7882ac3a (diff)
genirq: Split out flow handler typedefs into seperate header file
Required to avoid circular include dependencies. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--include/linux/irq.h6
-rw-r--r--include/linux/irqhandler.h14
2 files changed, 15 insertions, 5 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h
index 566b1e541323..677482bd8b92 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -15,6 +15,7 @@
15#include <linux/spinlock.h> 15#include <linux/spinlock.h>
16#include <linux/cpumask.h> 16#include <linux/cpumask.h>
17#include <linux/gfp.h> 17#include <linux/gfp.h>
18#include <linux/irqhandler.h>
18#include <linux/irqreturn.h> 19#include <linux/irqreturn.h>
19#include <linux/irqnr.h> 20#include <linux/irqnr.h>
20#include <linux/errno.h> 21#include <linux/errno.h>
@@ -27,12 +28,7 @@
27 28
28struct seq_file; 29struct seq_file;
29struct module; 30struct module;
30struct irq_desc;
31struct irq_data;
32struct msi_msg; 31struct msi_msg;
33typedef void (*irq_flow_handler_t)(unsigned int irq,
34 struct irq_desc *desc);
35typedef void (*irq_preflow_handler_t)(struct irq_data *data);
36 32
37/* 33/*
38 * IRQ line status. 34 * IRQ line status.
diff --git a/include/linux/irqhandler.h b/include/linux/irqhandler.h
new file mode 100644
index 000000000000..62d543004197
--- /dev/null
+++ b/include/linux/irqhandler.h
@@ -0,0 +1,14 @@
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
9struct irq_desc;
10struct irq_data;
11typedef void (*irq_flow_handler_t)(unsigned int irq, struct irq_desc *desc);
12typedef void (*irq_preflow_handler_t)(struct irq_data *data);
13
14#endif