[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240702234008.19101-3-richard.weiyang@gmail.com>
Date: Tue, 2 Jul 2024 23:40:08 +0000
From: Wei Yang <richard.weiyang@...il.com>
To: akpm@...ux-foundation.org,
masahiroy@...nel.org,
nathan@...nel.org,
nicolas@...sle.eu
Cc: linux-mm@...ck.org,
linux-kernel@...r.kernel.org,
linux-kbuild@...r.kernel.org,
Wei Yang <richard.weiyang@...il.com>,
Mike Rapoport <rppt@...nel.org>
Subject: [PATCH 3/3] mm/page_alloc: put __free_pages_core() in __meminit section
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@...il.com>
CC: Mike Rapoport (IBM) <rppt@...nel.org>
---
mm/page_alloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 480e4416131f..c46aedfc9a12 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1219,7 +1219,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,
enum meminit_context context)
{
unsigned int nr_pages = 1 << order;
--
2.34.1
Powered by blists - more mailing lists