]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/slab.c: add __init to init_lock_keys
authorFabian Frederick <fabf@skynet.be>
Thu, 26 Jun 2014 00:42:25 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:25 +0000 (10:42 +1000)
init_lock_keys is only called by __init kmem_cache_init_late

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Acked-by: Christoph Lameter <cl@linux.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/slab.c

index 3070b929a1bfa67778e415525403e9b36e392344..18ac44b7558d554756eb18d7545dd7d4a2b903fb 100644 (file)
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -569,7 +569,7 @@ static inline void on_slab_lock_classes(struct kmem_cache *cachep)
                on_slab_lock_classes_node(cachep, node);
 }
 
-static inline void init_lock_keys(void)
+static inline void __init init_lock_keys(void)
 {
        int node;
 
@@ -577,7 +577,7 @@ static inline void init_lock_keys(void)
                init_node_lock_keys(node);
 }
 #else
-static void init_node_lock_keys(int q)
+static void __init init_node_lock_keys(int q)
 {
 }