From: Fengguang Wu Date: Fri, 28 Sep 2012 08:34:05 +0000 (+0800) Subject: slub: init_kmem_cache_cpus() and put_cpu_partial() can be static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=788e1aadadd0d5a9cbffce10c34840b4072bc733;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git slub: init_kmem_cache_cpus() and put_cpu_partial() can be static Acked-by: Glauber Costa Acked-by: Christoph Lameter Acked-by: David Rientjes Signed-off-by: Fengguang Wu Signed-off-by: Pekka Enberg --- diff --git a/mm/slub.c b/mm/slub.c index f074f756405..944b4edaeb1 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1716,7 +1716,7 @@ static inline void note_cmpxchg_failure(const char *n, stat(s, CMPXCHG_DOUBLE_CPU_FAIL); } -void init_kmem_cache_cpus(struct kmem_cache *s) +static void init_kmem_cache_cpus(struct kmem_cache *s) { int cpu; @@ -1941,7 +1941,7 @@ static void unfreeze_partials(struct kmem_cache *s) * If we did not find a slot then simply move all the partials to the * per node partial list. */ -int put_cpu_partial(struct kmem_cache *s, struct page *page, int drain) +static int put_cpu_partial(struct kmem_cache *s, struct page *page, int drain) { struct page *oldpage; int pages;