diff options
author | Olof Johansson <olof@lixom.net> | 2007-11-10 15:59:29 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-11-13 00:22:44 -0500 |
commit | 9bafbb0c4d8df8b6baa1b917abfc10dc0969cd9d (patch) | |
tree | 1a9939846418cbf7234249489d78958a0998a5e1 /arch/powerpc/mm | |
parent | b64f87c16f3c00fe593f632e1ee5798ba3f4f3f4 (diff) |
[POWERPC] Fix CONFIG_SMP=n build error on ppc64
The patch "KVM: fix !SMP build error" change the way smp_call_function()
actually uses the passed in function names on non-SMP builds. So
previously it was never caught that the function passed in was never
actually defined.
This causes a build error on ppc64_defconfig + CONFIG_SMP=n:
arch/powerpc/mm/tlb_64.c: In function 'pgtable_free_now':
arch/powerpc/mm/tlb_64.c:71: error: 'pte_free_smp_sync' undeclared (first use in this function)
arch/powerpc/mm/tlb_64.c:71: error: (Each undeclared identifier is reported only once
arch/powerpc/mm/tlb_64.c:71: error: for each function it appears in.)
So we need to define it even if CONFIG_SMP is off. Either that or ifdef
out the smp_call_function() call, but that's ugly.
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r-- | arch/powerpc/mm/tlb_64.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/powerpc/mm/tlb_64.c b/arch/powerpc/mm/tlb_64.c index eafbca52bff9..e2d867ce1c7e 100644 --- a/arch/powerpc/mm/tlb_64.c +++ b/arch/powerpc/mm/tlb_64.c | |||
@@ -54,12 +54,10 @@ unsigned long pte_freelist_forced_free; | |||
54 | ((PAGE_SIZE - sizeof(struct pte_freelist_batch)) \ | 54 | ((PAGE_SIZE - sizeof(struct pte_freelist_batch)) \ |
55 | / sizeof(pgtable_free_t)) | 55 | / sizeof(pgtable_free_t)) |
56 | 56 | ||
57 | #ifdef CONFIG_SMP | ||
58 | static void pte_free_smp_sync(void *arg) | 57 | static void pte_free_smp_sync(void *arg) |
59 | { | 58 | { |
60 | /* Do nothing, just ensure we sync with all CPUs */ | 59 | /* Do nothing, just ensure we sync with all CPUs */ |
61 | } | 60 | } |
62 | #endif | ||
63 | 61 | ||
64 | /* This is only called when we are critically out of memory | 62 | /* This is only called when we are critically out of memory |
65 | * (and fail to get a page in pte_free_tlb). | 63 | * (and fail to get a page in pte_free_tlb). |