]> err.no Git - linux-2.6/commitdiff
x86, mpparse: build fix
authorIngo Molnar <mingo@elte.hu>
Sun, 25 May 2008 19:16:06 +0000 (21:16 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 10 Jun 2008 09:35:12 +0000 (11:35 +0200)
fix:

  LD      .tmp_vmlinux1
  arch/x86/kernel/built-in.o: In function `setup_arch':
  : undefined reference to `early_reserve_e820_mpc_new'

Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-x86/mpspec.h

index 6e9c9588b1fcdfa3452a5e968bcf4923891f746a..b8ba37496e2dde26d18bc746468906f7a5d01162 100644 (file)
@@ -46,7 +46,11 @@ extern unsigned long mp_lapic_addr;
 
 extern void find_smp_config(void);
 extern void get_smp_config(void);
+#ifdef CONFIG_X86_MPPARSE
 extern void early_reserve_e820_mpc_new(void);
+#else
+static inline void early_reserve_e820_mpc_new(void) { }
+#endif
 
 void __cpuinit generic_processor_info(int apicid, int version);
 #ifdef CONFIG_ACPI