Skip to contentSkip to conversation

microblaze-mm-put-mm_cmdline_setup-in-inittext-section.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Apr 1, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: microblaze/mm: put mm_cmdline_setup() in .init.text section
has been removed from the -mm tree. Its filename was
microblaze-mm-put-mm_cmdline_setup-in-inittext-section.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Wei Yang <[email protected]>
Subject: microblaze/mm: put mm_cmdline_setup() in .init.text section
Date: Fri, 28 Mar 2025 01:01:36 +0000

As reported by lkp, there is a section mismatch of mm_cmdline_setup() and memblock. The reason is we don't specify the section of mm_cmdline_setup() and gcc put it into .text.unlikely.

As mm_cmdline_setup() is only used in mmu_init(), which is in .init.text section, put mm_cmdline_setup() into it too.

---

 arch/microblaze/mm/init.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/microblaze/mm/init.c renamed from arch/microblaze/mm/init.c~microblaze-mm-put-mm_cmdline_setup-in-inittext-section +1 -1
@@ -118,7 +118,7 @@ int page_is_ram(unsigned long pfn)
 /*
  * Check for command-line options that affect what MMU_init will do.
  */
-static void mm_cmdline_setup(void)
+static void __init mm_cmdline_setup(void)
 {
 	unsigned long maxmem = 0;
 	char *p = cmd_line;

_

Patches currently in -mm which might be from [email protected] are