[PATCH] mm/: make functions static
This patch makes the following needlessly global functions static: - slab.c: kmem_find_general_cachep() - swap.c: __page_cache_release() - vmalloc.c: __vmalloc_node() Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
204ec841fb
commit
b221385bc4
@@ -768,11 +768,10 @@ static inline struct kmem_cache *__find_general_cachep(size_t size,
|
||||
return csizep->cs_cachep;
|
||||
}
|
||||
|
||||
struct kmem_cache *kmem_find_general_cachep(size_t size, gfp_t gfpflags)
|
||||
static struct kmem_cache *kmem_find_general_cachep(size_t size, gfp_t gfpflags)
|
||||
{
|
||||
return __find_general_cachep(size, gfpflags);
|
||||
}
|
||||
EXPORT_SYMBOL(kmem_find_general_cachep);
|
||||
|
||||
static size_t slab_mgmt_size(size_t nr_objs, size_t align)
|
||||
{
|
||||
|
Reference in New Issue
Block a user