Fix building for x86-32 (and cleanup some includes). Derived from my
unification patch for x86/kgdb posted to LKML.

Signed-off-by: Jan Kiszka <[EMAIL PROTECTED]>

---
 arch/x86/kernel/kgdb.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Index: b/arch/x86/kernel/kgdb.c
===================================================================
--- a/arch/x86/kernel/kgdb.c
+++ b/arch/x86/kernel/kgdb.c
@@ -44,9 +44,11 @@
 #include <linux/kgdb.h>
 #include <linux/init.h>
 #include <linux/kdebug.h>
-#include <asm/apicdef.h>
+#ifdef CONFIG_X86_32
+#include <mach_ipi.h>
+#else /* !CONFIG_X86_32 */
 #include <asm/mach_apic.h>
-#include <asm/debugreg.h>
+#endif /* !CONFIG_X86_32 */

 /* Put the error code here just in case the user cares.  */
 static int gdb_x86errcode;

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to