x86: Fix non-bootmem compilation on PowerPC
authorYinghai Lu <yinghai@kernel.org>
Wed, 17 Feb 2010 19:29:49 +0000 (11:29 -0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 22 Feb 2010 08:16:40 +0000 (09:16 +0100)
commit2ee78f7b1d8ada2615ecbcd9fea70580008bd6ce
tree4fa5e1df3bbf771fc57714272f7a6941aa3ed3a2
parent580e0ad21d6d6f932461d24b47041e3dd499c23f
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>
mm/page_alloc.c