Skip to contentSkip to conversation

linux-next: build failure after merge of the akpm tree

PATCH Stephen Rothwell 2 participants 4 messages Oct 5, 2018 – Oct 6, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Andrew,

After merging the akpm tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

arch/powerpc/kernel/setup-common.c:36:10: fatal error: linux/bootmem.h: No such file or directory

 #include <linux/bootmem.h>
          ^~~~~~~~~~~~~~~~~

Caused by commit

49353a51a758 ("mm: remove include/linux/bootmem.h")

interacting with commit

d90fe2acd9b2 ("powerpc: Wire up memtest")

from the powerpc tree.

I applied the following patch for today:

From: Stephen Rothwell <[email protected]>
Date: Fri, 5 Oct 2018 16:09:34 +1000
Subject: [PATCH] powerpc: fix up for removal of linux/bootmem.h

---
 arch/powerpc/kernel/setup-common.c | 1 -
 1 file changed, 1 deletion(-)
arch/powerpc/kernel/setup-common.c +0 -1
index 2b56d1f30387..93ee3703b42f 100644
@@ -33,7 +33,6 @@
 #include <linux/serial_8250.h>
 #include <linux/percpu.h>
 #include <linux/memblock.h>
-#include <linux/bootmem.h>
 #include <linux/of_platform.h>
 #include <linux/hugetlb.h>
 #include <asm/debugfs.h>
Signature · 5 lines
2.18.0

-- 
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 11 lines · Stephen Rothwell

Hi Andrew,

After merging the akpm tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

arch/powerpc/kernel/setup-common.c:36:10: fatal error: linux/bootmem.h: No such file or directory

 #include <linux/bootmem.h>
          ^~~~~~~~~~~~~~~~~

Caused by commit

Quoted 7 lines

49353a51a758 ("mm: remove include/linux/bootmem.h")

interacting with commit

d90fe2acd9b2 ("powerpc: Wire up memtest")

from the powerpc tree.

Ah fudge, what are the chances we add a new include of bootmem.h just as Mike's removing bootmem.

Quoted 16 lines

I applied the following patch for today:

From: Stephen Rothwell <[email protected]>
Date: Fri, 5 Oct 2018 16:09:34 +1000
Subject: [PATCH] powerpc: fix up for removal of linux/bootmem.h

---
 arch/powerpc/kernel/setup-common.c | 1 -
 1 file changed, 1 deletion(-)
arch/powerpc/kernel/setup-common.c +0 -0
index 2b56d1f30387..93ee3703b42f 100644

arch/powerpc/kernel/setup-common.c line 38

Quoted 7 lines
arch/powerpc/kernel/setup-common.c +0 -1
@@ -33,7 +33,6 @@
 #include <linux/serial_8250.h>
 #include <linux/percpu.h>
 #include <linux/memblock.h>
-#include <linux/bootmem.h>
 #include <linux/of_platform.h>
 #include <linux/hugetlb.h>
 #include <asm/debugfs.h>

I could just apply that to my tree. memblock.h is where early_memtest() is actually defined anyway.

cheers

#2 lore raw

Hi Michael,

Quoted 3 lines · On Fri, 05 Oct 2018 22:02:45 +1000 Michael Ellerman <[email protected]> wrote:

Ah fudge, what are the chances we add a new include of bootmem.h just as Mike's removing bootmem.

In my experience, it was almost certain ... almost every API removal conflicts with new added uses. :-)

Quoted 2 lines

I could just apply that to my tree. memblock.h is where early_memtest() is actually defined anyway.

However min_low_pfn and max_low_pfn are defined in bootmem.h until after it is removed.

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
Quoted 9 lines · Stephen Rothwell

Hi Michael,

Quoted 3 lines · On Fri, 05 Oct 2018 22:02:45 +1000 Michael Ellerman <[email protected]> wrote:

Ah fudge, what are the chances we add a new include of bootmem.h just as Mike's removing bootmem.

In my experience, it was almost certain ... almost every API removal conflicts with new added uses. :-)

I suppose. Though the last time we added a new include of bootmem.h was 2015, and that should have actually been memblock.h.

Quoted 5 lines
Quoted 2 lines

I could just apply that to my tree. memblock.h is where early_memtest() is actually defined anyway.

However min_low_pfn and max_low_pfn are defined in bootmem.h until after it is removed.

OK. I guess I'll leave it for Andrew to squash in to the series.

cheers