From d5688b72d4417600d5eb9ffc29d1ac3aacad8f31 Mon Sep 17 00:00:00 2001 From: Joonsoo Kim Date: Thu, 29 Nov 2012 14:17:30 +1100 Subject: [PATCH] bootmem: remove not implemented function call, bootmem_arch_preferred_node() There is no implementation of bootmem_arch_preferred_node() and a call to this function will cause a compilation error. So remove it. Signed-off-by: Joonsoo Kim Cc: Haavard Skinnemoen Cc: Hans-Christian Egtvedt Cc: Johannes Weiner Cc: FUJITA Tomonori Cc: Benjamin Herrenschmidt Signed-off-by: Andrew Morton --- mm/bootmem.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/mm/bootmem.c b/mm/bootmem.c index f468185b3b28..4af865d7dca6 100644 --- a/mm/bootmem.c +++ b/mm/bootmem.c @@ -581,19 +581,6 @@ static void * __init alloc_arch_preferred_bootmem(bootmem_data_t *bdata, { if (WARN_ON_ONCE(slab_is_available())) return kzalloc(size, GFP_NOWAIT); - -#ifdef CONFIG_HAVE_ARCH_BOOTMEM - { - bootmem_data_t *p_bdata; - - p_bdata = bootmem_arch_preferred_node(bdata, size, align, - goal, limit); - if (p_bdata) - return alloc_bootmem_bdata(p_bdata, size, align, - goal, limit); - } -#endif - return NULL; } static void * __init alloc_bootmem_core(unsigned long size, -- 2.39.5