Skip to contentSkip to conversation

kgdb: Fix ARM build with KGDB disabled

PATCH New Mark Brown 1 participant 1 message Jan 4, 2010 KGDB / KDB /debug_core

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 kgdb: Fix ARM build with KGDB disabled

The patch "kgdb: core changes to support kdb" in -next makes the inclusion of asm/kgdb.h depend on the selection of KGDB in Kconfig, breaking the build on ARM when this is not selected since it protypes a function kgdb_die_hook() there. Since this seems like a reasonable thing for an architecture to want to do fix this by moving the inclusion outside the ifdef check.

---
 include/linux/kgdb.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
include/linux/kgdb.h +3 -1
index bd84f73..ada1f26 100644
@@ -16,9 +16,11 @@
 #include <linux/serial_8250.h>
 #include <linux/linkage.h>
 #include <linux/init.h>
+
+#include <asm/kgdb.h>
+
 #ifdef CONFIG_KGDB
 #include <asm/atomic.h>
-#include <asm/kgdb.h>
 
 struct pt_regs;
 
Signature · 1 line
1.6.5.7