Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);