Skip to content

Commit

Permalink
slob: make slob_alloc_node() static and remove EXPORT_SYMBOL()
Browse files Browse the repository at this point in the history
slob_alloc_node() is only used in slob.c.  Remove the EXPORT_SYMBOL and
make slob_alloc_node() static.

Signed-off-by: Fabian Frederick <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Fabian Frederick authored and torvalds committed Apr 14, 2015
1 parent 6f6528a commit c21a6da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mm/slob.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ int __kmem_cache_create(struct kmem_cache *c, unsigned long flags)
return 0;
}

void *slob_alloc_node(struct kmem_cache *c, gfp_t flags, int node)
static void *slob_alloc_node(struct kmem_cache *c, gfp_t flags, int node)
{
void *b;

Expand All @@ -558,7 +558,6 @@ void *slob_alloc_node(struct kmem_cache *c, gfp_t flags, int node)
kmemleak_alloc_recursive(b, c->size, 1, c->flags, flags);
return b;
}
EXPORT_SYMBOL(slob_alloc_node);

void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags)
{
Expand Down

0 comments on commit c21a6da

Please sign in to comment.