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

Stephen Rothwell posted 1 patch 1 year, 5 months ago
There is a newer version of this series
arch/powerpc/kernel/vmlinux.lds.S | 2 --
1 file changed, 2 deletions(-)
linux-next: build failure after merge of the mm tree
Posted by Stephen Rothwell 1 year, 5 months ago
Hi all,

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

ld: cannot find MEM_KEEP: No such file or directory

Caused by commit

  78e70fd784bd ("init/modpost: conditionally check section mismatch to __meminit*")

from the mm-nonmm-unstable branch of the mm tree.

grep is your friend :-)

I have applied the following fix patch for today.

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Wed, 10 Jul 2024 09:28:02 +1000
Subject: [PATCH] fixup for "init/modpost: conditionally check section mismatch to __meminit*"

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 arch/powerpc/kernel/vmlinux.lds.S | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S
index f420df7888a7..7ab4e2fb28b1 100644
--- a/arch/powerpc/kernel/vmlinux.lds.S
+++ b/arch/powerpc/kernel/vmlinux.lds.S
@@ -123,8 +123,6 @@ SECTIONS
 		 */
 		*(.sfpr);
 		*(.text.asan.* .text.tsan.*)
-		MEM_KEEP(init.text)
-		MEM_KEEP(exit.text)
 	} :text
 
 	. = ALIGN(PAGE_SIZE);
-- 
2.43.0

-- 
Cheers,
Stephen Rothwell