path: root/mm/page_alloc.c
diff options
authorYinghai Lu <>2010-02-17 11:29:49 -0800
committerIngo Molnar <>2010-02-22 09:16:40 +0100
commit2ee78f7b1d8ada2615ecbcd9fea70580008bd6ce (patch)
tree4fa5e1df3bbf771fc57714272f7a6941aa3ed3a2 /mm/page_alloc.c
parent580e0ad21d6d6f932461d24b47041e3dd499c23f (diff)
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 <> Cc: Andrew Morton <> Cc: Johannes Weiner <> Cc: Mel Gorman <> LKML-Reference: <> Signed-off-by: Ingo Molnar <>
Diffstat (limited to 'mm/page_alloc.c')
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 78821a28e39..1fa93bd2bb9 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -3450,6 +3450,7 @@ int __init add_from_early_node_map(struct range *range, int az,
return nr_range;
void * __init __alloc_memory_core_early(int nid, u64 size, u64 align,
u64 goal, u64 limit)
@@ -3486,6 +3487,7 @@ void * __init __alloc_memory_core_early(int nid, u64 size, u64 align,
return NULL;
void __init work_with_active_regions(int nid, work_fn_t work_fn, void *data)