提交 1cd7daa5 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

slub.c:early_kmem_cache_node_alloc() shouldn't be __init

WARNING: mm/built-in.o(.text+0x24bd3): Section mismatch: reference to .init.text:early_kmem_cache_node_alloc (between 'init_kmem_cache_nodes' and 'calculate_sizes')
...
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
Acked-by: NChristoph Lameter <clameter@sgi.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 d29eff7b
...@@ -1878,8 +1878,8 @@ static void init_kmem_cache_node(struct kmem_cache_node *n) ...@@ -1878,8 +1878,8 @@ static void init_kmem_cache_node(struct kmem_cache_node *n)
* Note that this function only works on the kmalloc_node_cache * Note that this function only works on the kmalloc_node_cache
* when allocating for the kmalloc_node_cache. * when allocating for the kmalloc_node_cache.
*/ */
static struct kmem_cache_node * __init early_kmem_cache_node_alloc(gfp_t gfpflags, static struct kmem_cache_node *early_kmem_cache_node_alloc(gfp_t gfpflags,
int node) int node)
{ {
struct page *page; struct page *page;
struct kmem_cache_node *n; struct kmem_cache_node *n;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册