summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorChristopher Díaz Riveros <chrisadr@gentoo.org>2018-01-31 16:20:33 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2018-01-31 17:18:40 -0800
commit8ad6e404efa294b848782cf14f3d298762674e58 (patch)
treeeabe933377c71e58e1fd961ace992e51167add98 /mm
parent8d63e4cd62b2583c7efe64f2ede406b3f44983f6 (diff)
downloadlinux-8ad6e404efa294b848782cf14f3d298762674e58.tar.bz2
mm/memcontrol.c: make local symbol static
Fix the following sparse warning: mm/memcontrol.c:1097:14: warning: symbol 'memcg1_stats' was not declared. Should it be static? Link: http://lkml.kernel.org/r/20180118193327.14200-1-chrisadr@gentoo.org Signed-off-by: Christopher Díaz Riveros <chrisadr@gentoo.org> Cc: Michal Hocko <mhocko@kernel.org> Cc: Johannes Weiner <hannes@cmpxchg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/memcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 695d9f10906e..3d7a3d02b168 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -1095,7 +1095,7 @@ static bool mem_cgroup_wait_acct_move(struct mem_cgroup *memcg)
return false;
}
-unsigned int memcg1_stats[] = {
+static const unsigned int memcg1_stats[] = {
MEMCG_CACHE,
MEMCG_RSS,
MEMCG_RSS_HUGE,