Skip to contentSkip to conversation

proper show_interrupts() prototype

PATCH New Adrian Bunk 1 participant 1 message Oct 30, 2007 Proc filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proper show_interrupts() prototype

This patch adds a proper prototype for show_interrupts() in include/linux/interrupt.h

---

 arch/h8300/kernel/irq.c   |    1 +
 fs/proc/proc_misc.c       |    2 +-
 include/linux/interrupt.h |    2 ++
 3 files changed, 4 insertions(+), 1 deletion(-)

3884100dff673abe8667f2e53586ecd705e7af24

arch/h8300/kernel/irq.c +1 -0
index 8dec4dd..5a1b4cf 100644
@@ -14,6 +14,7 @@
 #include <linux/random.h>
 #include <linux/bootmem.h>
 #include <linux/irq.h>
+#include <linux/interrupt.h>
 
 #include <asm/system.h>
 #include <asm/traps.h>
fs/proc/proc_misc.c +1 -1
index e0d064e..6357ac2 100644
@@ -46,6 +46,7 @@
 #include <linux/vmalloc.h>
 #include <linux/crash_dump.h>
 #include <linux/pid_namespace.h>
+#include <linux/interrupt.h>
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
 #include <asm/io.h>
@@ -598,7 +599,6 @@ static void int_seq_stop(struct seq_file *f, void *v)
 }
 
 
-extern int show_interrupts(struct seq_file *f, void *v); /* In arch code */
 static struct seq_operations int_seq_ops = {
 	.start = int_seq_start,
 	.next  = int_seq_next,
include/linux/interrupt.h +2 -0
index 2306920..e194afc 100644
@@ -443,4 +443,6 @@ static inline void init_irq_proc(void)
 }
 #endif
 
+int show_interrupts(struct seq_file *p, void *v);
+
 #endif