powerpc/kexec: Fix build failure on 32-bit SMP
authorBen Hutchings <ben@decadent.org.uk>
Sun, 24 Apr 2011 15:04:31 +0000 (15:04 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 19 May 2011 03:09:21 +0000 (13:09 +1000)
commit35d215fbe4f4d3569f2adabd8d53510a26ecb9c5
tree26c809153cd5ae3f0a2133af66424c1723ba40ed
parent69e3cea8d5fd52677f2b6219542d0f8b53fe4c80
powerpc/kexec: Fix build failure on 32-bit SMP

Commit b987812b3fcaf70fdf0037589e5d2f5f2453e6ce left
crash_kexec_wait_realmode() undefined for UP.

Commit 7c7a81b53e581d727d069cc45df5510516faac31 defined it for UP but
left it undefined for 32-bit SMP.

Seems like people are getting confused by nested #ifdef's, so move the
definitions of crash_kexec_wait_realmode() after the #ifdef CONFIG_SMP
section.

Compile-tested with 32-bit UP, 32-bit SMP and 64-bit SMP configurations.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Tested-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/crash.c