Skip to contentSkip to conversation

powerpc: Fix build of 64 bit little endian with CONFIG_KEXEC=n

PATCH Applied Thiago Jung Bauermann 2 participants 2 messages Aug 23, 2016 – Sep 8, 2016 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Fix build of 64 bit little endian 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’ [-Werror=implicit-function-declaration]
if (rc && !kdump_in_progress())

This is because pseries/setup.c includes <linux/kexec.h>, but kdump_in_progress is defined in <asm/kexec.h>. This is a problem because the former only includes the latter if CONFIG_KEXEC_CORE=y.

Fix by including <asm/kexec.h> directly, as is done in powernv/setup.c.

Fixes d3cbff1b5a90 ("powerpc: Put exception configuration in a common place")
---
 arch/powerpc/platforms/pseries/setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/pseries/setup.c +1 -1
index 4ffcaa6f8670..a39d20e8623d 100644
@@ -41,7 +41,6 @@
 #include <linux/root_dev.h>
 #include <linux/of.h>
 #include <linux/of_pci.h>
-#include <linux/kexec.h>
 
 #include <asm/mmu.h>
 #include <asm/processor.h>
@@ -66,6 +65,7 @@
 #include <asm/eeh.h>
 #include <asm/reg.h>
 #include <asm/plpar_wrappers.h>
+#include <asm/kexec.h>
 
 #include "pseries.h"
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 7 lines · Thiago Jung Bauermann

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’ [-Werror=implicit-function-declaration]
if (rc && !kdump_in_progress())

Quoted 8 lines

This is because pseries/setup.c includes <linux/kexec.h>, but kdump_in_progress is defined in <asm/kexec.h>. This is a problem because the former only includes the latter if CONFIG_KEXEC_CORE=y.

Fix by including <asm/kexec.h> directly, as is done in powernv/setup.c.

Fixes d3cbff1b5a90 ("powerpc: Put exception configuration in a common place")

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/d81d8258218228d3137055afe8

cheers