On Tue, 19 May 2020 20:45:01 +0300 Mike Rapoport <rppt@xxxxxxxxxx> wrote: > --- a/include/linux/mm.h > +++ b/include/linux/mm.h > @@ -2351,6 +2351,7 @@ static inline unsigned long get_num_physpages(void) > * sparse_memory_present_with_active_regions() calls memory_present() for > * each range when SPARSEMEM is enabled. > */ > +bool arch_has_descending_max_zone_pfns(void); > void free_area_init(unsigned long *max_zone_pfn); > unsigned long node_map_pfn_alignment(void); > unsigned long __absent_pages_in_range(int nid, unsigned long start_pfn, I kinda preferred my patch ;) There's a section of mm.h just for page_alloc.c.