]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Fix CONFIG_SMP=n build error on ppc64
authorOlof Johansson <olof@lixom.net>
Sat, 10 Nov 2007 20:59:29 +0000 (07:59 +1100)
committerPaul Mackerras <paulus@samba.org>
Tue, 13 Nov 2007 05:22:44 +0000 (16:22 +1100)
commit9bafbb0c4d8df8b6baa1b917abfc10dc0969cd9d
tree1a9939846418cbf7234249489d78958a0998a5e1
parentb64f87c16f3c00fe593f632e1ee5798ba3f4f3f4
[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>
arch/powerpc/mm/tlb_64.c