powerpc: Fix build of 64 bit little endian with CONFIG_KEXEC=n
Michael Ellerman
patch-notifications at ellerman.id.au
Thu Sep 8 19:47:55 AEST 2016
On Tue, 2016-23-08 at 22:57:39 UTC, Thiago Jung Bauermann wrote:
> 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")
> Signed-off-by: Thiago Jung Bauermann <bauerman at linux.vnet.ibm.com>
Applied to powerpc fixes, thanks.
https://git.kernel.org/powerpc/c/d81d8258218228d3137055afe8
cheers
More information about the Linuxppc-dev
mailing list