diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 9972df4..1aa1737 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -539,7 +539,7 @@ static inline bool memcg_can_account_kmem(struct mem_cgroup *memcg) (memcg->kmem_accounted & (KMEM_ACCOUNTED_MASK)); } -struct ida cache_types; +static struct ida cache_types; void memcg_register_cache(struct mem_cgroup *memcg, struct kmem_cache *cachep) { diff --git a/mm/slub.c b/mm/slub.c index 63f096e..db5d41e 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1706,7 +1706,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; @@ -1931,7 +1931,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;