mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + mm-bootmem_info-mark-__init-on-register_page_bootmem_info_section.patch added to -mm tree
@ 2021-08-17 20:35 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-08-17 20:35 UTC (permalink / raw)
  To: mm-commits, osalvador, mhocko, david, songmuchun


The patch titled
     Subject: mm/bootmem_info.c: mark __init on register_page_bootmem_info_section
has been added to the -mm tree.  Its filename is
     mm-bootmem_info-mark-__init-on-register_page_bootmem_info_section.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/mm-bootmem_info-mark-__init-on-register_page_bootmem_info_section.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/mm-bootmem_info-mark-__init-on-register_page_bootmem_info_section.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Muchun Song <songmuchun@bytedance.com>
Subject: mm/bootmem_info.c: mark __init on register_page_bootmem_info_section

register_page_bootmem_info_section() is only called from __init functions,
so mark it __init as well.

Link: https://lkml.kernel.org/r/20210817042221.77172-1-songmuchun@bytedance.com
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/bootmem_info.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/mm/bootmem_info.c~mm-bootmem_info-mark-__init-on-register_page_bootmem_info_section
+++ a/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_s
 
 }
 #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;
_

Patches currently in -mm which might be from songmuchun@bytedance.com are

mm-bootmem_info-mark-__init-on-register_page_bootmem_info_section.patch
mm-remove-redundant-compound_head-calling.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-17 20:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-17 20:35 + mm-bootmem_info-mark-__init-on-register_page_bootmem_info_section.patch added to -mm tree akpm

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).