提交 433f13a7 编写于 作者: J Joe Perches 提交者: Linus Torvalds

bootmem.c: avoid c90 declaration warning

[akpm@linux-foundation.org: cleanup]
Signed-off-by: NJoe Perches <joe@perches.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 1e9c2859
...@@ -536,11 +536,15 @@ static void * __init alloc_arch_preferred_bootmem(bootmem_data_t *bdata, ...@@ -536,11 +536,15 @@ static void * __init alloc_arch_preferred_bootmem(bootmem_data_t *bdata,
return kzalloc(size, GFP_NOWAIT); return kzalloc(size, GFP_NOWAIT);
#ifdef CONFIG_HAVE_ARCH_BOOTMEM #ifdef CONFIG_HAVE_ARCH_BOOTMEM
{
bootmem_data_t *p_bdata; bootmem_data_t *p_bdata;
p_bdata = bootmem_arch_preferred_node(bdata, size, align, goal, limit); p_bdata = bootmem_arch_preferred_node(bdata, size, align,
goal, limit);
if (p_bdata) if (p_bdata)
return alloc_bootmem_core(p_bdata, size, align, goal, limit); return alloc_bootmem_core(p_bdata, size, align,
goal, limit);
}
#endif #endif
return NULL; return NULL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册