Commit 38bdc32a authored by Sam Ravnborg's avatar Sam Ravnborg

mm/slab: fix section mismatch warning

Use the new __init_refok marker to avoid the
section mismatch warning from slab.c
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 577a32f6
...@@ -2037,7 +2037,7 @@ static size_t calculate_slab_order(struct kmem_cache *cachep, ...@@ -2037,7 +2037,7 @@ static size_t calculate_slab_order(struct kmem_cache *cachep,
return left_over; return left_over;
} }
static int setup_cpu_cache(struct kmem_cache *cachep) static int __init_refok setup_cpu_cache(struct kmem_cache *cachep)
{ {
if (g_cpucache_up == FULL) if (g_cpucache_up == FULL)
return enable_cpucache(cachep); return enable_cpucache(cachep);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment