[PATCH -next] powerpc/book3e: Fix build error

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE1539d LANDED

Landed in mainline as 7574dd080ee0 on 2022-05-22.

5 messages, 4 authors, 2022-05-24 · open the first message on its own page

[PATCH -next] powerpc/book3e: Fix build error

From: YueHaibing <hidden>
Date: 2022-05-17 09:48:53

arch/powerpc/mm/nohash/fsl_book3e.c: In function ‘relocate_init’:
arch/powerpc/mm/nohash/fsl_book3e.c:348:2: error: implicit declaration of function ‘early_get_first_memblock_info’ [-Werror=implicit-function-declaration]
  early_get_first_memblock_info(__va(dt_ptr), &size);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Add missing include file linux/of_fdt.h to fix this.

Signed-off-by: YueHaibing <redacted>
---
 arch/powerpc/mm/nohash/fsl_book3e.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/mm/nohash/fsl_book3e.c b/arch/powerpc/mm/nohash/fsl_book3e.c
index 08a984e29433..093da4dbdee1 100644
--- a/arch/powerpc/mm/nohash/fsl_book3e.c
+++ b/arch/powerpc/mm/nohash/fsl_book3e.c
@@ -36,6 +36,7 @@
 #include <linux/delay.h>
 #include <linux/highmem.h>
 #include <linux/memblock.h>
+#include <linux/of_fdt.h>
 
 #include <asm/io.h>
 #include <asm/mmu_context.h>
-- 
2.17.1

Re: [PATCH -next] powerpc/book3e: Fix build error

From: Christophe Leroy <hidden>
Date: 2022-05-17 10:48:52


Le 17/05/2022 à 11:48, YueHaibing a écrit :
arch/powerpc/mm/nohash/fsl_book3e.c: In function ‘relocate_init’:
arch/powerpc/mm/nohash/fsl_book3e.c:348:2: error: implicit declaration of function ‘early_get_first_memblock_info’ [-Werror=implicit-function-declaration]
   early_get_first_memblock_info(__va(dt_ptr), &size);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Add missing include file linux/of_fdt.h to fix this.

Signed-off-by: YueHaibing <redacted>
Thats for fixing that.

Reviewed-by: Christophe Leroy <redacted>

It means we don't have any defconfig for 32 bits booke with 
CONFIG_RELOCATABLE ?
quoted hunk
---
  arch/powerpc/mm/nohash/fsl_book3e.c | 1 +
  1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/mm/nohash/fsl_book3e.c b/arch/powerpc/mm/nohash/fsl_book3e.c
index 08a984e29433..093da4dbdee1 100644
--- a/arch/powerpc/mm/nohash/fsl_book3e.c
+++ b/arch/powerpc/mm/nohash/fsl_book3e.c
@@ -36,6 +36,7 @@
  #include <linux/delay.h>
  #include <linux/highmem.h>
  #include <linux/memblock.h>
+#include <linux/of_fdt.h>
  
  #include <asm/io.h>
  #include <asm/mmu_context.h>

Re: [PATCH -next] powerpc/book3e: Fix build error

From: YueHaibing <hidden>
Date: 2022-05-17 11:32:01

On 2022/5/17 18:45, Christophe Leroy wrote:

Le 17/05/2022 à 11:48, YueHaibing a écrit :
quoted
arch/powerpc/mm/nohash/fsl_book3e.c: In function ‘relocate_init’:
arch/powerpc/mm/nohash/fsl_book3e.c:348:2: error: implicit declaration of function ‘early_get_first_memblock_info’ [-Werror=implicit-function-declaration]
   early_get_first_memblock_info(__va(dt_ptr), &size);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Add missing include file linux/of_fdt.h to fix this.

Signed-off-by: YueHaibing <redacted>
Thats for fixing that.

Reviewed-by: Christophe Leroy <redacted>

It means we don't have any defconfig for 32 bits booke with 
CONFIG_RELOCATABLE ?
Indeed, there is no defconfig with CONFIG_RELOCATABLE under arch/powerpc/configs
quoted
---
  arch/powerpc/mm/nohash/fsl_book3e.c | 1 +
  1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/mm/nohash/fsl_book3e.c b/arch/powerpc/mm/nohash/fsl_book3e.c
index 08a984e29433..093da4dbdee1 100644
--- a/arch/powerpc/mm/nohash/fsl_book3e.c
+++ b/arch/powerpc/mm/nohash/fsl_book3e.c
@@ -36,6 +36,7 @@
  #include <linux/delay.h>
  #include <linux/highmem.h>
  #include <linux/memblock.h>
+#include <linux/of_fdt.h>
  
  #include <asm/io.h>
  #include <asm/mmu_context.h>

Re: [PATCH -next] powerpc/book3e: Fix build error

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2022-05-18 04:50:45

YueHaibing [off-list ref] writes:
On 2022/5/17 18:45, Christophe Leroy wrote:
quoted
Le 17/05/2022 à 11:48, YueHaibing a écrit :
quoted
arch/powerpc/mm/nohash/fsl_book3e.c: In function ‘relocate_init’:
arch/powerpc/mm/nohash/fsl_book3e.c:348:2: error: implicit declaration of function ‘early_get_first_memblock_info’ [-Werror=implicit-function-declaration]
   early_get_first_memblock_info(__va(dt_ptr), &size);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Add missing include file linux/of_fdt.h to fix this.

Signed-off-by: YueHaibing <redacted>
Thats for fixing that.

Reviewed-by: Christophe Leroy <redacted>

It means we don't have any defconfig for 32 bits booke with 
CONFIG_RELOCATABLE ?
Indeed, there is no defconfig with CONFIG_RELOCATABLE under arch/powerpc/configs
It's selected by CRASH_DUMP, which is in ppc64_defconfig.

But it's not enabled in corenet32_smp_defconfig which is what I build,
or any of the other 85xx configs.

I guess it should be, I think it's true that RELOCATABLE=y exercises
more interesting code paths?

cheers

Re: [PATCH -next] powerpc/book3e: Fix build error

From: Michael Ellerman <hidden>
Date: 2022-05-24 11:17:02

On Tue, 17 May 2022 17:48:30 +0800, YueHaibing wrote:
arch/powerpc/mm/nohash/fsl_book3e.c: In function ‘relocate_init’:
arch/powerpc/mm/nohash/fsl_book3e.c:348:2: error: implicit declaration of function ‘early_get_first_memblock_info’ [-Werror=implicit-function-declaration]
  early_get_first_memblock_info(__va(dt_ptr), &size);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Add missing include file linux/of_fdt.h to fix this.

[...]
Applied to powerpc/next.

[1/1] powerpc/book3e: Fix build error
      https://git.kernel.org/powerpc/c/7574dd080ee0a1e8a9c6312dc7c8fe97f73415ff

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help