diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-05-21 06:21:13 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 05:31:27 -0400 |
commit | f307d25e638d3408659a2ec98fb3fd1737f7cb31 (patch) | |
tree | 38c91096f2166c7dbea776ea81bf97f0ac245e28 /arch/x86/kernel/smpboot.c | |
parent | 5deb0b2a25b7b568ab81f7c38052572ecf4ccc96 (diff) |
x86: compile error fix for smpboot.c
Without this patch, my link fails with:
arch/x86/kernel/built-in.o(.cpuinit.text+0x3c6e): In function `get_local_pda':
: undefined reference to `_cpu_pda'
arch/x86/kernel/built-in.o(.cpuinit.text+0x3cd1): In function `get_local_pda':
: undefined reference to `after_bootmem'
arch/x86/kernel/built-in.o(.cpuinit.text+0x3cec): In function `get_local_pda':
: undefined reference to `_cpu_pda'
make[2]: *** [.tmp_vmlinux1] Error 1
Caused by commit 766da892634694f795b18b9538407816896fc470
x86: remove static boot_cpu_pda array v2
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r-- | arch/x86/kernel/smpboot.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index bf0833487455..bc1e1257e515 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -816,6 +816,7 @@ static void __cpuinit do_fork_idle(struct work_struct *work) | |||
816 | complete(&c_idle->done); | 816 | complete(&c_idle->done); |
817 | } | 817 | } |
818 | 818 | ||
819 | #ifdef CONFIG_X86_64 | ||
819 | /* | 820 | /* |
820 | * Allocate node local memory for the AP pda. | 821 | * Allocate node local memory for the AP pda. |
821 | * | 822 | * |
@@ -852,6 +853,7 @@ static int __cpuinit get_local_pda(int cpu) | |||
852 | cpu_pda(cpu) = newpda; | 853 | cpu_pda(cpu) = newpda; |
853 | return 0; | 854 | return 0; |
854 | } | 855 | } |
856 | #endif /* CONFIG_X86_64 */ | ||
855 | 857 | ||
856 | static int __cpuinit do_boot_cpu(int apicid, int cpu) | 858 | static int __cpuinit do_boot_cpu(int apicid, int cpu) |
857 | /* | 859 | /* |