diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2016-11-16 21:27:56 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-11-28 14:58:13 +0300 |
commit | 10c77dba40ff58fc03587b3b60725bb7fd723183 (patch) | |
tree | bfe9fc8b705bcc29e8e7ae3f2388a079d9e015a0 /arch/powerpc/boot/opal.c | |
parent | 984d7a1ec67ce3a46324fa4bcb4c745bbc266cf2 (diff) | |
download | linux-10c77dba40ff58fc03587b3b60725bb7fd723183.tar.xz |
powerpc/boot: Fix build failure in 32-bit boot wrapper
OPAL is not callable from 32-bit mode and the assembly code for it
may not even build (depending on how binutils was configured).
References: https://buildd.debian.org/status/fetch.php?pkg=linux&arch=powerpcspe&ver=4.8.7-1&stamp=1479203712
Fixes: 656ad58ef19e ("powerpc/boot: Add OPAL console to epapr wrappers")
Cc: stable@vger.kernel.org # v4.8+
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/boot/opal.c')
-rw-r--r-- | arch/powerpc/boot/opal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/boot/opal.c b/arch/powerpc/boot/opal.c index d7b4fd47eb44..0272570d02de 100644 --- a/arch/powerpc/boot/opal.c +++ b/arch/powerpc/boot/opal.c @@ -13,7 +13,7 @@ #include <libfdt.h> #include "../include/asm/opal-api.h" -#ifdef __powerpc64__ +#ifdef CONFIG_PPC64_BOOT_WRAPPER /* Global OPAL struct used by opal-call.S */ struct opal { |