The patch titled Subject: mm-page_alloc-introduce-free_area_init_core_hotplug-fix has been added to the -mm tree. Its filename is mm-page_alloc-introduce-free_area_init_core_hotplug-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-page_alloc-introduce-free_area_init_core_hotplug-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-page_alloc-introduce-free_area_init_core_hotplug-fix.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: Oscar Salvador <osalvador@xxxxxxxxxxxxxxxxxx> Subject: mm-page_alloc-introduce-free_area_init_core_hotplug-fix set_pageblock_order() is only called from free_area_init_core() and sparse_init(). sparse_init() is only called during early init, and the same applies for free_area_init_core() from now on (with this patchset) The same goes for calc_memmap_size(). Link: http://lkml.kernel.org/r/20180731101752.GA473@xxxxxxxxxxxxxxxxxx Cc: Aaron Lu <aaron.lu@xxxxxxxxx> Cc: Dan Williams <dan.j.williams@xxxxxxxxx> Cc: David Hildenbrand <david@xxxxxxxxxx> Cc: Joonsoo Kim <iamjoonsoo.kim@xxxxxxx> Cc: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxx> Cc: Oscar Salvador <osalvador@xxxxxxx> Cc: Pavel Tatashin <pasha.tatashin@xxxxxxxxxx> Cc: Vlastimil Babka <vbabka@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- diff -puN mm/page_alloc.c~mm-page_alloc-introduce-free_area_init_core_hotplug-fix mm/page_alloc.c --- a/mm/page_alloc.c~mm-page_alloc-introduce-free_area_init_core_hotplug-fix +++ a/mm/page_alloc.c @@ -6142,7 +6142,7 @@ static inline void setup_usemap(struct p #ifdef CONFIG_HUGETLB_PAGE_SIZE_VARIABLE /* Initialise the number of pages represented by NR_PAGEBLOCK_BITS */ -void __paginginit set_pageblock_order(void) +void __init set_pageblock_order(void) { unsigned int order; @@ -6170,13 +6170,13 @@ void __paginginit set_pageblock_order(vo * include/linux/pageblock-flags.h for the values of pageblock_order based on * the kernel config */ -void __paginginit set_pageblock_order(void) +void __init set_pageblock_order(void) { } #endif /* CONFIG_HUGETLB_PAGE_SIZE_VARIABLE */ -static unsigned long __paginginit calc_memmap_size(unsigned long spanned_pages, +static unsigned long __init calc_memmap_size(unsigned long spanned_pages, unsigned long present_pages) { unsigned long pages = spanned_pages; @@ -6448,7 +6448,7 @@ void __init free_area_init_node(int nid, * may be accessed (for example page_to_pfn() on some configuration accesses * flags). We must explicitly zero those struct pages. */ -void __paginginit zero_resv_unavail(void) +void __init zero_resv_unavail(void) { phys_addr_t start, end; unsigned long pfn; _ Patches currently in -mm which might be from osalvador@xxxxxxxxxxxxxxxxxx are mm-page_alloc-introduce-free_area_init_core_hotplug-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html