MIPS: traps: Add missing include file
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.
--- arch/mips/kernel/traps.c | 1 + 1 file changed, 1 insertion(+)
arch/mips/kernel/traps.c +1 -0
@@ -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
Hello.
Quoted 2 lines · Guenter Roeck
Commit
05155ddc2617("MIPS: get rid of 'kgdb_early_setup' cruft") removed the include oflinux/kgdb.hfromarch/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
Signed-off-by Guenter Roeck <[email protected]>
WBR, Sergei
On Fri, Jun 05, 2015 at 07:29:45AM -0700, Guenter Roeck wrote:
Thanks, I folded your fix into the original patch.
Ralf