]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
slub: init_kmem_cache_cpus() and put_cpu_partial() can be static
authorFengguang Wu <fengguang.wu@intel.com>
Fri, 28 Sep 2012 08:34:05 +0000 (16:34 +0800)
committerPekka Enberg <penberg@kernel.org>
Wed, 3 Oct 2012 06:48:41 +0000 (09:48 +0300)
Acked-by: Glauber Costa <glommer@parallels.com>
Acked-by: Christoph Lameter <cl@linux.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c

index f074f756405ab338ce97038c1dfd3e457a388a21..944b4edaeb18a2de45fd4251d5324159d7497165 100644 (file)
--- 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;