From: Thiago Jung Bauermann Date: Tue, 23 Aug 2016 22:57:39 +0000 (-0300) Subject: powerpc/pseries: Fix little endian build with CONFIG_KEXEC=n X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d81d8258218228d3137055afe8acf981c3ebed46;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git powerpc/pseries: Fix little endian build with CONFIG_KEXEC=n On ppc64le, builds with CONFIG_KEXEC=n fail with: arch/powerpc/platforms/pseries/setup.c: In function ‘pseries_big_endian_exceptions’: arch/powerpc/platforms/pseries/setup.c:403:13: error: implicit declaration of function ‘kdump_in_progress’ if (rc && !kdump_in_progress()) This is because pseries/setup.c includes , but kdump_in_progress() is defined in . This is a problem because the former only includes the latter if CONFIG_KEXEC_CORE=y. Fix it by including directly, as is done in powernv/setup.c. Fixes: d3cbff1b5a90 ("powerpc: Put exception configuration in a common place") Signed-off-by: Thiago Jung Bauermann Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index 4ffcaa6f8670..a39d20e8623d 100644 --- a/arch/powerpc/platforms/pseries/setup.c +++ b/arch/powerpc/platforms/pseries/setup.c @@ -41,7 +41,6 @@ #include #include #include -#include #include #include @@ -66,6 +65,7 @@ #include #include #include +#include #include "pseries.h"