summaryrefslogtreecommitdiffstats
path: root/mm/rmap.c
diff options
context:
space:
mode:
authorNamhyung Kim2010-10-26 23:22:02 +0200
committerLinus Torvalds2010-10-27 01:52:10 +0200
commite574b5fd20027b422aa80790f710d695699b4fba (patch)
tree0aca49bb6fde5c30e74546a6cb97befa00d613ad /mm/rmap.c
parentrmap: wrap page_check_address() using __cond_lock() (diff)
downloadkernel-qcow2-linux-e574b5fd20027b422aa80790f710d695699b4fba.tar.gz
kernel-qcow2-linux-e574b5fd20027b422aa80790f710d695699b4fba.tar.xz
kernel-qcow2-linux-e574b5fd20027b422aa80790f710d695699b4fba.zip
rmap: make anon_vma_chain_free() static
Make anon_vma_chain_free() static. It is called only in rmap.c and the corresponding alloc function is already static. Signed-off-by: Namhyung Kim <namhyung@gmail.com> Cc: Andi Kleen <andi@firstfloor.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/rmap.c')
-rw-r--r--mm/rmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/rmap.c b/mm/rmap.c
index bfeffbddb712..1a8bf76bfd03 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -80,7 +80,7 @@ static inline struct anon_vma_chain *anon_vma_chain_alloc(void)
return kmem_cache_alloc(anon_vma_chain_cachep, GFP_KERNEL);
}
-void anon_vma_chain_free(struct anon_vma_chain *anon_vma_chain)
+static void anon_vma_chain_free(struct anon_vma_chain *anon_vma_chain)
{
kmem_cache_free(anon_vma_chain_cachep, anon_vma_chain);
}