From: Namhyung Kim Date: Tue, 26 Oct 2010 21:22:02 +0000 (-0700) Subject: rmap: make anon_vma_chain_free() static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e574b5fd20027b422aa80790f710d695699b4fba;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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); }