author: Mike Rapoport <rppt@linux.ibm.com> 2021-09-02 14:57:56 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-09-03 09:58:15 -0700
commit: c3ab6baf6a004eab7344a1d8880a971f2414e1b6
parent: f16de0bcdb55bf18e2533ca625f3e4b4952f254c
Commit Summary:
Diffstat:
1 file changed, 0 insertions, 8 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 60a867a549bd..bd2efd6287ce 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -6642,7 +6642,6 @@ static void __meminit zone_init_free_lists(struct zone *zone)
}
}
-#if !defined(CONFIG_FLATMEM)
/*
* Only struct pages that correspond to ranges defined by memblock.memory
* are zeroed and initialized by going through __init_single_page() during
@@ -6687,13 +6686,6 @@ static void __init init_unavailable_range(unsigned long spfn,
pr_info("On node %d, zone %s: %lld pages in unavailable ranges",
node, zone_names[zone], pgcnt);
}
-#else
-static inline void init_unavailable_range(unsigned long spfn,
- unsigned long epfn,
- int zone, int node)
-{
-}
-#endif
static void __init memmap_init_zone_range(struct zone *zone,
unsigned long start_pfn,