kdb compile fix for non-x86
Corey Minyard
minyard at acm.org
Thu Jun 14 15:38:03 PDT 2007
Forwarding for Dave, against the lastest release...
non-x86 archs (i.e. powerpc) has no asm/kdb.h. However 8250 serial stuff
includes linux/kdb.h which pulls the asm/kdb.h. Thus this breaks non-x86 kernel
builds. Wrapping CONFIG_KDB around that should fix the issue.
Signed-off-by: Dave Jiang <djiang at mvista.com>
---
diff -Naurp 2.6.22-rc4/include/linux/kdb.h 2.6.22-rc4_mod/include/linux/kdb.h
--- 2.6.22-rc4/include/linux/kdb.h 2007-06-14 14:44:43.000000000 -0700
+++ 2.6.22-rc4_mod/include/linux/kdb.h 2007-06-14 14:46:37.000000000 -0700
@@ -16,6 +16,7 @@
#include <linux/sched.h>
#include <asm/atomic.h>
+#ifdef CONFIG_KDB
/* These are really private, but they must be defined before including
* asm-$(ARCH)/kdb.h, so make them public and put them here.
*/
@@ -23,6 +24,7 @@ extern int kdb_getuserarea_size(void *,
extern int kdb_putuserarea_size(unsigned long, void *, size_t);
#include <asm/kdb.h>
+#endif
#define KDB_MAJOR_VERSION 4
#define KDB_MINOR_VERSION 4
---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
More information about the kdb
mailing list