From: Christopher Díaz Riveros Date: Thu, 1 Feb 2018 00:20:33 +0000 (-0800) Subject: mm/memcontrol.c: make local symbol static X-Git-Tag: v4.19~1701^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ad6e404efa294b848782cf14f3d298762674e58;p=platform%2Fkernel%2Flinux-rpi.git 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 Cc: Michal Hocko Cc: Johannes Weiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 695d9f1..3d7a3d0 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,