[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210310071535.35245-2-songmuchun@bytedance.com>
Date: Wed, 10 Mar 2021 15:15:33 +0800
From: Muchun Song <songmuchun@...edance.com>
To: will@...nel.org, akpm@...ux-foundation.org, david@...hat.com,
bodeddub@...zon.com, osalvador@...e.de, mike.kravetz@...cle.com,
rientjes@...gle.com
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, duanxiongchun@...edance.com,
Muchun Song <songmuchun@...edance.com>
Subject: [PATCH 1/3] mm: bootmem_info: mark register_page_bootmem_info_section __init
The register_page_bootmem_info_section() is only called from __init
functions, so mark it __init as well.
Signed-off-by: Muchun Song <songmuchun@...edance.com>
---
mm/bootmem_info.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/bootmem_info.c b/mm/bootmem_info.c
index 5b152dba7344..f03f42f426f6 100644
--- a/mm/bootmem_info.c
+++ b/mm/bootmem_info.c
@@ -39,7 +39,7 @@ void put_page_bootmem(struct page *page)
}
#ifndef CONFIG_SPARSEMEM_VMEMMAP
-static void register_page_bootmem_info_section(unsigned long start_pfn)
+static void __init register_page_bootmem_info_section(unsigned long start_pfn)
{
unsigned long mapsize, section_nr, i;
struct mem_section *ms;
@@ -74,7 +74,7 @@ static void register_page_bootmem_info_section(unsigned long start_pfn)
}
#else /* CONFIG_SPARSEMEM_VMEMMAP */
-static void register_page_bootmem_info_section(unsigned long start_pfn)
+static void __init register_page_bootmem_info_section(unsigned long start_pfn)
{
unsigned long mapsize, section_nr, i;
struct mem_section *ms;
--
2.11.0
Powered by blists - more mailing lists