Skip to contentSkip to conversation

MIPS: traps: Add missing include file

PATCH In review Guenter Roeck 3 participants 3 messages Jun 5, 2015 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: traps: Add missing include file

Commit 05155ddc2617 ("MIPS: get rid of 'kgdb_early_setup' cruft") removed the include of linux/kgdb.h from arch/mips/kernel/traps.c. This results in

arch/mips/kernel/traps.c: In function 'show_stack':
arch/mips/kernel/traps.c:204:14: error: 'kgdb_active' undeclared arch/mips/kernel/traps.c: In function 'do_trap_or_bp':
arch/mips/kernel/traps.c:877:2: error:
implicit declaration of function 'kgdb_ll_trap'

when building mips:allmodconfig.

Fixes 05155ddc2617 ("MIPS: get rid of 'kgdb_early_setup' cruft")
Cc Sergei Shtylyov <[email protected]>
---
 arch/mips/kernel/traps.c | 1 +
 1 file changed, 1 insertion(+)
arch/mips/kernel/traps.c +1 -0
index b5337a3447e7..2a7b38ed23f0 100644
@@ -29,6 +29,7 @@
 #include <linux/bootmem.h>
 #include <linux/interrupt.h>
 #include <linux/ptrace.h>
+#include <linux/kgdb.h>
 #include <linux/kdebug.h>
 #include <linux/kprobes.h>
 #include <linux/notifier.h>
Signature · 1 line
2.1.0
Acked-by on v1 1/1
#1 lore raw

Hello.

Quoted 2 lines · Guenter Roeck

Commit 05155ddc2617 ("MIPS: get rid of 'kgdb_early_setup' cruft") removed the include of linux/kgdb.h from arch/mips/kernel/traps.c.

Sorry about that. And thanks for beating me to it. :-)

Quoted 4 lines

This results in

arch/mips/kernel/traps.c: In function 'show_stack':
arch/mips/kernel/traps.c:204:14: error: 'kgdb_active' undeclared

The build robot has informed me about that one...

Quoted 3 lines

arch/mips/kernel/traps.c: In function 'do_trap_or_bp':
arch/mips/kernel/traps.c:877:2: error:
implicit declaration of function 'kgdb_ll_trap'

... but not about this one.

Quoted 4 lines

when building mips:allmodconfig.

Fixes 05155ddc2617 ("MIPS: get rid of 'kgdb_early_setup' cruft")
Cc Sergei Shtylyov <[email protected]>
Quoted 1 line

WBR, Sergei