kdb compile fix for non-x86

Corey Minyard <[email protected]>
Newsgroups gmane.linux.kernel.debugging
Message-ID <20070614223803.GA13967@localdomain>
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 <[email protected]>

---

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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.