lkml.org 
[lkml]   [2010]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH 16/35] x86: make 64 bit use early_res instead of bootmem before slab
please check

Subject: [PATCH] x86: nobootmem fix compiling on power pc

Stephen Rothwell reported: on powerpc

x86: make 64 bit use early_res instead of bootmem before slab

cause

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'

actually the function is only needed for no_bootmem

Signed-off-by: Yinghai Lu <yinghai@kernel.org>

---
mm/page_alloc.c | 2 ++
1 file changed, 2 insertions(+)
Index: linux-2.6/mm/page_alloc.c
===================================================================
--- linux-2.6.orig/mm/page_alloc.c
+++ linux-2.6/mm/page_alloc.c
@@ -3456,6 +3456,7 @@ int __init add_from_early_node_map(struc
return nr_range;
}

+#ifdef CONFIG_NO_BOOTMEM
void * __init __alloc_memory_core_early(int nid, u64 size, u64 align,
u64 goal, u64 limit)
{
@@ -3492,6 +3493,7 @@ void * __init __alloc_memory_core_early(

return NULL;
}
+#endif


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

\
 
 \ /
  Last update: 2010-02-14 21:35    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site