Skip to content

Commit da9870e

Browse files
geertutorvalds
authored andcommitted
m68k: init_irq_proc depends on CONFIG_PROC_FS
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 6168a70 ("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>
1 parent 2171a19 commit da9870e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎arch/m68k/kernel/ints.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,9 @@ int show_interrupts(struct seq_file *p, void *v)
429429
return 0;
430430
}
431431

432+
#ifdef CONFIG_PROC_FS
432433
void init_irq_proc(void)
433434
{
434435
/* Insert /proc/irq driver here */
435436
}
436-
437+
#endif

0 commit comments

Comments
 (0)