From: Sam Ravnborg Date: Thu, 17 May 2007 21:48:19 +0000 (+0200) Subject: mm/slab: fix section mismatch warning X-Git-Tag: v2.6.22-rc3~109^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=38bdc32af442b6ab09ed61b8b669072098c95dd2;p=linux-2.6-omap-h63xx.git mm/slab: fix section mismatch warning Use the new __init_refok marker to avoid the section mismatch warning from slab.c Signed-off-by: Sam Ravnborg --- diff --git a/mm/slab.c b/mm/slab.c index 528243e15cc..2e71a328aa0 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -2037,7 +2037,7 @@ static size_t calculate_slab_order(struct kmem_cache *cachep, 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) return enable_cpucache(cachep);