]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
m68k: init_irq_proc depends on CONFIG_PROC_FS
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 13 Oct 2008 19:59:01 +0000 (21:59 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Oct 2008 17:23:27 +0000 (10:23 -0700)
If CONFIG_PROC_FS is not set, I get:

| arch/m68k/kernel/ints.c:433: error: redefinition of 'init_irq_proc'
| include/linux/interrupt.h:438: error: previous definition of 'init_irq_proc' was here

This was introduced by commit 6168a702ab0be181e5e57a0b2d0e7376f7a47f0b
("Declare init_irq_proc before we use it."), which replaced the #ifdef
protection of the init_irq_proc() call by a static inline dummy if
CONFIG_PROC_FS is not set.

Make init_irq_proc() depend on CONFIG_PROC_FS to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/m68k/kernel/ints.c

index ded7dd2f67b2803688965a49f0abb72faf1e0463..7e8a0d394e6184cbf63a5fb257befa4082ce0148 100644 (file)
@@ -429,8 +429,9 @@ int show_interrupts(struct seq_file *p, void *v)
        return 0;
 }
 
+#ifdef CONFIG_PROC_FS
 void init_irq_proc(void)
 {
        /* Insert /proc/irq driver here */
 }
-
+#endif