LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] mm: bootmem_info: mark __init on register_page_bootmem_info_section
@ 2021-08-17 4:22 Muchun Song
2021-08-17 7:17 ` David Hildenbrand
0 siblings, 1 reply; 2+ messages in thread
From: Muchun Song @ 2021-08-17 4:22 UTC (permalink / raw)
To: akpm, osalvador, david, mhocko; +Cc: linux-mm, linux-kernel, Muchun Song
The register_page_bootmem_info_section() is only called from __init
functions, so mark __init on it as well.
Signed-off-by: Muchun Song <songmuchun@bytedance.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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mm: bootmem_info: mark __init on register_page_bootmem_info_section
2021-08-17 4:22 [PATCH] mm: bootmem_info: mark __init on register_page_bootmem_info_section Muchun Song
@ 2021-08-17 7:17 ` David Hildenbrand
0 siblings, 0 replies; 2+ messages in thread
From: David Hildenbrand @ 2021-08-17 7:17 UTC (permalink / raw)
To: Muchun Song, akpm, osalvador, mhocko; +Cc: linux-mm, linux-kernel
On 17.08.21 06:22, Muchun Song wrote:
> The register_page_bootmem_info_section() is only called from __init
> functions, so mark __init on it as well.
>
> Signed-off-by: Muchun Song <songmuchun@bytedance.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;
>
Reviewed-by: David Hildenbrand <david@redhat.com>
--
Thanks,
David / dhildenb
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-17 7:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-17 4:22 [PATCH] mm: bootmem_info: mark __init on register_page_bootmem_info_section Muchun Song
2021-08-17 7:17 ` David Hildenbrand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).