* [PATCH] kgdb: Fix ARM build with KGDB disabled
@ 2010-01-04 13:24 Mark Brown
0 siblings, 0 replies; only message in thread
From: Mark Brown @ 2010-01-04 13:24 UTC (permalink / raw)
To: linux-arm-kernel
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.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
include/linux/kgdb.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/include/linux/kgdb.h b/include/linux/kgdb.h
index bd84f73..ada1f26 100644
--- a/include/linux/kgdb.h
+++ b/include/linux/kgdb.h
@@ -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;
--
1.6.5.7
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-04 13:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-04 13:24 [PATCH] kgdb: Fix ARM build with KGDB disabled Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).