]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Fix little endian build with CONFIG_KEXEC=n
authorThiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Tue, 23 Aug 2016 22:57:39 +0000 (19:57 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 6 Sep 2016 04:54:08 +0000 (14:54 +1000)
commit5cd78675c2266c5c307700c2b12b8a7eaa71523b
tree3a99b7e9bcd95ecae02167b6fbdf16e9a1d8a684
parent6dff34f5c706223432697f2da696098489f16d1c
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 <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 it by including <asm/kexec.h> directly, as is done in powernv/setup.c.

Fixes: ae50551f6b58 ("powerpc: Put exception configuration in a common place")
Signed-off-by: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/setup.c