]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Wed, 4 May 2011 05:22:59 +0000 (15:22 +1000)
commit63d0409ed6c98f98c02cc2596901e89778da81f7
tree1adbc1edfc26fa3b3258f8c1c592d8b4775fe78d
parent48e7c9ff3bc8c13693a371f7eacc8af2c276c9ec
powerpc/kexec: Fix build failure on 32-bit SMP

Commit aaae2aff4516005b781b84d7cc649b656a1de133 left
crash_kexec_wait_realmode() undefined for UP.

Commit 778db0d44256ef3bdb043d131bed57e8c60d0560 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