Commit 2ee78f7b1d8ada2615ecbcd9fea70580008bd6ce

Authored by Yinghai Lu
Committed by Ingo Molnar
1 parent 580e0ad21d

x86: Fix non-bootmem compilation on PowerPC

These build errors on some non-x86 platforms (PowerPC for example):

 mm/page_alloc.c: In function '__alloc_memory_core_early':
   mm/page_alloc.c:3468: error: implicit declaration of function 'find_early_area'
   mm/page_alloc.c:3483: error: implicit declaration of function 'reserve_early_without_check'

The function is only needed on CONFIG_NO_BOOTMEM.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Johannes Weiner <hannes@saeurebad.de>
Cc: Mel Gorman <mel@csn.ul.ie>
LKML-Reference: <4B747239.4070907@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -3450,6 +3450,7 @@
3450 3450 return nr_range;
3451 3451 }
3452 3452  
  3453 +#ifdef CONFIG_NO_BOOTMEM
3453 3454 void * __init __alloc_memory_core_early(int nid, u64 size, u64 align,
3454 3455 u64 goal, u64 limit)
3455 3456 {
... ... @@ -3486,6 +3487,7 @@
3486 3487  
3487 3488 return NULL;
3488 3489 }
  3490 +#endif
3489 3491  
3490 3492  
3491 3493 void __init work_with_active_regions(int nid, work_fn_t work_fn, void *data)