diff mbox series

[3/4] mm/page_alloc: put __free_pages_core() in __meminit section

Message ID 20240629013322.12364-3-richard.weiyang@gmail.com (mailing list archive)
State New
Headers show
Series [1/4] mm: use zonelist_zone() to get zone | expand

Commit Message

Wei Yang June 29, 2024, 1:33 a.m. UTC
Function __free_pages_core() is only used in bootmem init and hot-add
memory init path. Let's put it in __meminit section.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
CC: Mike Rapoport (IBM) <rppt@kernel.org>
---
 mm/page_alloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 9ecf99190ea2..51a47db375b6 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1218,7 +1218,7 @@  static void __free_pages_ok(struct page *page, unsigned int order,
 	__count_vm_events(PGFREE, 1 << order);
 }
 
-void __free_pages_core(struct page *page, unsigned int order)
+void __meminit __free_pages_core(struct page *page, unsigned int order)
 {
 	unsigned int nr_pages = 1 << order;
 	struct page *p = page;