x86: fix x86_32 builds for summit and es7000 arch's
authorMike Travis <travis@sgi.com>
Tue, 6 Jan 2009 01:09:41 +0000 (17:09 -0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 6 Jan 2009 12:26:50 +0000 (13:26 +0100)
Fix the following build errors reported by Yinghai Lu:

| In file included from arch/x86/mach-generic/summit.c:16:
| tip/linux-2.6/arch/x86/include/asm/summit/apic.h:
| In function 'cpu_mask_to_apicid_and':
| tip/linux-2.6/arch/x86/include/asm/summit/apic.h:179:
| error: 'GFP_ATOMIC' undeclared (first use in this function)

Reported-by: Yinghai Lu <Yinghai.Lu@Sun.COM>
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/es7000/apic.h
arch/x86/include/asm/summit/apic.h

index bc53d5ef13868407466cd8c5eb8efe8b27e20341..c58b9cc744657a6e22349e48a02ec4e22fc17d46 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __ASM_ES7000_APIC_H
 #define __ASM_ES7000_APIC_H
 
+#include <linux/gfp.h>
+
 #define xapic_phys_to_log_apicid(cpu) per_cpu(x86_bios_cpu_apicid, cpu)
 #define esr_disable (1)
 
index 4bb5fb34f030256fe4eb6ed875defea34c89bf32..93d2c8667cfea885b8f1c20f1bf0f579f3f5216f 100644 (file)
@@ -2,6 +2,7 @@
 #define __ASM_SUMMIT_APIC_H
 
 #include <asm/smp.h>
+#include <linux/gfp.h>
 
 #define esr_disable (1)
 #define NO_BALANCE_IRQ (0)