Skip to content

Commit

Permalink
mm/slab.c: add __init to init_lock_keys
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Fabian Frederick authored and Linus Torvalds committed Aug 7, 2014
1 parent 656c3b7 commit 1536cb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,15 +569,15 @@ 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;

for_each_node(node)
init_node_lock_keys(node);
}
#else
static void init_node_lock_keys(int q)
static void __init init_node_lock_keys(int q)
{
}

Expand Down

0 comments on commit 1536cb3

Please sign in to comment.