mm-bootmem_info-remove-config_have_bootmem_info_node.patch removed from -mm tree
The quilt patch titled
Subject: mm/bootmem_info: remove CONFIG_HAVE_BOOTMEM_INFO_NODE
has been removed from the -mm tree. Its filename was
mm-bootmem_info-remove-config_have_bootmem_info_node.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: "David Hildenbrand (Arm)" <[email protected]>
Subject: mm/bootmem_info: remove CONFIG_HAVE_BOOTMEM_INFO_NODE
Date: Thu, 16 Jul 2026 16:51:09 +0200
The whole infrastructure is unused now. Let's remove the config option along with mm/bootmem_info. + include/linux/bootmem_info.h.
---
MAINTAINERS | 1 include/linux/bootmem_info.h | 89 --------------------------------- mm/Kconfig | 7 -- mm/Makefile | 1 mm/bootmem_info.c | 72 -------------------------- 5 files changed, 170 deletions(-)
include/linux/bootmem_info.h deleted +0 -89
@@ -1,89 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef __LINUX_BOOTMEM_INFO_H -#define __LINUX_BOOTMEM_INFO_H - -#include <linux/mm.h> -#include <linux/kmemleak.h> - -/* -* Types for free bootmem stored in the low bits of page->private. -*/ -enum bootmem_type { -MEMORY_HOTPLUG_MIN_BOOTMEM_TYPE =1 , -SECTION_INFO =MEMORY_HOTPLUG_MIN_BOOTMEM_TYPE , -MIX_SECTION_INFO , -NODE_INFO , -MEMORY_HOTPLUG_MAX_BOOTMEM_TYPE =NODE_INFO , -}; - -#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); -void put_page_bootmem (struct page *page); - -static inline enum bootmem_type bootmem_type (const struct page *page) -{ -return (unsigned long )page->private &0xf ; -} - -static inline unsigned long bootmem_info (const struct page *page) -{ -return (unsigned long )page->private >>4 ; -} - -/* -* Any memory allocated via the memblock allocator and not via the -* buddy will be marked reserved already in the memmap. For those -* pages, we can call this function to free it to buddy allocator. -*/ -static inline void free_bootmem_page (struct page *page) -{ -enum bootmem_type type =bootmem_type (page); - -if (type ==SECTION_INFO || type ==MIX_SECTION_INFO ) { -VM_WARN_ON_PAGE (page_ref_count (page) !=2 , page); -put_page_bootmem (page); - }else { -free_reserved_page (page); - } -} -#else -static inline void register_page_bootmem_info_node (struct pglist_data *pgdat) -{ -} - -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) -{ -} - -static inline enum bootmem_type bootmem_type (const struct page *page) -{ -return SECTION_INFO ; -} - -static inline unsigned long bootmem_info (const struct page *page) -{ -return 0 ; -} - -static inline void get_page_bootmem (unsigned long info,struct page *page, -enum bootmem_type type) -{ -} - -static inline void free_bootmem_page (struct page *page) -{ -free_reserved_page (page); -} -#endif - -#endif /* __LINUX_BOOTMEM_INFO_H */
MAINTAINERS renamed from MAINTAINERS~mm-bootmem_info-remove-config_have_bootmem_info_node +0 -1
@@ -16880,7 +16880,6 @@ T: git git://git.kernel.org/pub/scm/linu F: Documentation/core-api/boot-time-mm.rst F: include/linux/kho/abi/memblock.h F: include/linux/memblock.h -F: mm/bootmem_info.c F: mm/memblock.c F: mm/memtest.c F: mm/mm_init.c
mm/bootmem_info.c deleted +0 -72
72 lines not on this page · raw message
mm/Kconfig renamed from mm/Kconfig~mm-bootmem_info-remove-config_have_bootmem_info_node +0 -7
@@ -509,13 +509,6 @@ config EXCLUSIVE_SYSTEM_RAM def_bool y depends on !DEVMEM || STRICT_DEVMEM -# -# Only be set on architectures that have completely implemented memory hotplug -# feature. If you are not sure, don't touch it. -# -config HAVE_BOOTMEM_INFO_NODE - def_bool n - config ARCH_ENABLE_MEMORY_HOTPLUG bool
mm/Makefile renamed from mm/Makefile~mm-bootmem_info-remove-config_have_bootmem_info_node +0 -1
@@ -141,7 +141,6 @@ obj-$(CONFIG_MEMFD_CREATE) += memfd.o obj-$(CONFIG_MAPPING_DIRTY_HELPERS) += mapping_dirty_helpers.o obj-$(CONFIG_PTDUMP) += ptdump.o obj-$(CONFIG_PAGE_REPORTING) += page_reporting.o -obj-$(CONFIG_HAVE_BOOTMEM_INFO_NODE) += bootmem_info.o obj-$(CONFIG_GENERIC_IOREMAP) += ioremap.o obj-$(CONFIG_SHRINKER_DEBUG) += shrinker_debug.o obj-$(CONFIG_EXECMEM) += execmem.o
_
Patches currently in -mm which might be from [email protected] are
mm-standardize-printing-for-pgtable-entries.patch mm-gup-fix-always-draining-lru-caches-in-collect_longterm_unpinnable_folios.patch