linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Fix build of 64 bit little endian with CONFIG_KEXEC=n
@ 2016-08-23 22:57 Thiago Jung Bauermann
  2016-09-08  9:47 ` Michael Ellerman
  0 siblings, 1 reply; 2+ messages in thread
From: Thiago Jung Bauermann @ 2016-08-23 22:57 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: 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())

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@linux.vnet.ibm.com>
---
 arch/powerpc/platforms/pseries/setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 <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"
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: powerpc: Fix build of 64 bit little endian with CONFIG_KEXEC=n
  2016-08-23 22:57 [PATCH] powerpc: Fix build of 64 bit little endian with CONFIG_KEXEC=n Thiago Jung Bauermann
@ 2016-09-08  9:47 ` Michael Ellerman
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2016-09-08  9:47 UTC (permalink / raw)
  To: Thiago Jung Bauermann, linuxppc-dev; +Cc: Thiago Jung Bauermann

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 940 bytes --]

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@linux.vnet.ibm.com>

Applied to powerpc fixes, thanks.

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

cheers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-08  9:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-23 22:57 [PATCH] powerpc: Fix build of 64 bit little endian with CONFIG_KEXEC=n Thiago Jung Bauermann
2016-09-08  9:47 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).