Export ensure_zone_is_initialized() so that it can be used to initialize new zones within the dynamic numa code. Signed-off-by: Cody P Schafer <cody@xxxxxxxxxxxxxxxxxx> --- mm/internal.h | 8 ++++++++ mm/memory_hotplug.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mm/internal.h b/mm/internal.h index 1c0c4cc..6c63752 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -105,6 +105,14 @@ extern void prep_compound_page(struct page *page, unsigned long order); extern bool is_free_buddy_page(struct page *page); #endif +#ifdef CONFIG_MEMORY_HOTPLUG +/* + * in mm/memory_hotplug.c + */ +extern int ensure_zone_is_initialized(struct zone *zone, + unsigned long start_pfn, unsigned long num_pages); +#endif + #if defined CONFIG_COMPACTION || defined CONFIG_CMA /* diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 9e4c32b..9f43c80 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -284,7 +284,7 @@ static void fix_zone_id(struct zone *zone, unsigned long start_pfn, /* Can fail with -ENOMEM from allocating a wait table with vmalloc() or * alloc_bootmem_node_nopanic() */ -static int __ref ensure_zone_is_initialized(struct zone *zone, +int __ref ensure_zone_is_initialized(struct zone *zone, unsigned long start_pfn, unsigned long num_pages) { if (!zone_is_initialized(zone)) -- 1.8.1.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>