mm-bootmem_info-export-register_page_bootmem_memmap.patch removed from -mm tree
The quilt patch titled
Subject: mm/bootmem_info: export register_page_bootmem_memmap
has been removed from the -mm tree. Its filename was
mm-bootmem_info-export-register_page_bootmem_memmap.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: Frank van der Linden <[email protected]>
Subject: mm/bootmem_info: export register_page_bootmem_memmap
Date: Fri, 28 Feb 2025 18:29:10 +0000
If other mm code wants to use this function for early memmap inialization (on the platforms that have it), it should be made available properly, not just unconditionally in mm.h
Make this function available for such cases.
---
arch/powerpc/mm/init_64.c | 4 ++++ include/linux/bootmem_info.h | 7 +++++++ include/linux/mm.h | 3 --- 3 files changed, 11 insertions(+), 3 deletions(-)
arch/powerpc/mm/init_64.c renamed from arch/powerpc/mm/init_64.c~mm-bootmem_info-export-register_page_bootmem_memmap +4 -0
@@ -41,6 +41,7 @@#include <linux/libfdt.h> #include <linux/memremap.h> #include <linux/memory.h> +#include <linux/bootmem_info.h> #include <asm/pgalloc.h> #include <asm/page.h>
@@ -386,10 +387,13 @@ void __ref vmemmap_free(unsigned long st }#endif + +#ifdef CONFIG_HAVE_BOOTMEM_INFO_NODE void register_page_bootmem_memmap (unsigned long section_nr,struct page *start_page,unsigned long size) { } +#endif /* CONFIG_HAVE_BOOTMEM_INFO_NODE */ #endif /* CONFIG_SPARSEMEM_VMEMMAP */
include/linux/bootmem_info.h renamed from include/linux/bootmem_info.h~mm-bootmem_info-export-register_page_bootmem_memmap +7 -0
@@ -18,6 +18,8 @@ enum bootmem_type {#ifdef CONFIG_HAVE_BOOTMEM_INFO_NODE void __init register_page_bootmem_info_node (struct pglist_data *pgdat); +void register_page_bootmem_memmap (unsigned long section_nr,struct page *map, +unsigned long nr_pages);void get_page_bootmem (unsigned long info,struct page *page,enum bootmem_type type);
@@ -58,6 +60,11 @@ static inline void register_page_bootmem { } +static inline void register_page_bootmem_memmap (unsigned long section_nr, +struct page *map,unsigned long nr_pages) +{ +} +static inline void put_page_bootmem (struct page *page) { }
include/linux/mm.h renamed from include/linux/mm.h~mm-bootmem_info-export-register_page_bootmem_memmap +0 -3
@@ -4018,9 +4018,6 @@ static inline bool vmemmap_can_optimize( }#endif -void register_page_bootmem_memmap (unsigned long section_nr,struct page *map, -unsigned long nr_pages); -enum mf_flags {MF_COUNT_INCREASED =1 <<0 ,MF_ACTION_REQUIRED =1 <<1 ,
_
Patches currently in -mm which might be from [email protected] are