Skip to content

Commit 2ee78f7

Browse files
Yinghai LuIngo Molnar
authored andcommitted
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>
1 parent 580e0ad commit 2ee78f7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎mm/page_alloc.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3450,6 +3450,7 @@ int __init add_from_early_node_map(struct range *range, int az,
34503450
return nr_range;
34513451
}
34523452

3453+
#ifdef CONFIG_NO_BOOTMEM
34533454
void * __init __alloc_memory_core_early(int nid, u64 size, u64 align,
34543455
u64 goal, u64 limit)
34553456
{
@@ -3486,6 +3487,7 @@ void * __init __alloc_memory_core_early(int nid, u64 size, u64 align,
34863487

34873488
return NULL;
34883489
}
3490+
#endif
34893491

34903492

34913493
void __init work_with_active_regions(int nid, work_fn_t work_fn, void *data)

0 commit comments

Comments
 (0)