[PATCH 1/1] mm/slab.c: add __init to init_lock_keys

From: Fabian Frederick
Date: Sat Jun 07 2014 - 07:30:52 EST


init_lock_keys is only called by __init kmem_cache_init_late

Cc: Christoph Lameter <cl@xxxxxxxxxxxxxxxxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Fabian Frederick <fabf@xxxxxxxxx>
---
mm/slab.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/slab.c b/mm/slab.c
index 19d9218..4ff5298 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -536,7 +536,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;

@@ -544,7 +544,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)
{
}

--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/