Re: kgdb build error

From: Ingo Molnar
Date: Mon Apr 21 2008 - 15:19:18 EST



* Patrick McHardy <kaber@xxxxxxxxx> wrote:

> I get this build error with current -git on x86_64 (config attached):
>
> CC arch/x86/kernel/kgdb.o
> arch/x86/kernel/kgdb.c:52:28: error: asm/mach_apic.h: No such file or
> directory
> arch/x86/kernel/kgdb.c: In function 'kgdb_roundup_cpus':
> arch/x86/kernel/kgdb.c:337: error: implicit declaration of function
> 'send_IPI_allbutself'

yep, this should fix it:

http://lkml.org/lkml/2008/4/19/35

(also attached below, or available in x86.git.)

Ingo

------------------------->
Subject: x86: KGDB build fix
From: Ingo Molnar <mingo@xxxxxxx>

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
arch/x86/kernel/kgdb.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)

Index: linux-x86.q/arch/x86/kernel/kgdb.c
===================================================================
--- linux-x86.q.orig/arch/x86/kernel/kgdb.c
+++ linux-x86.q/arch/x86/kernel/kgdb.c
@@ -46,11 +46,7 @@
#include <asm/apicdef.h>
#include <asm/system.h>

-#ifdef CONFIG_X86_32
-# include <mach_ipi.h>
-#else
-# include <asm/mach_apic.h>
-#endif
+#include <mach_ipi.h>

/*
* Put the error code here just in case the user cares:
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/