[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20180118193327.14200-1-chrisadr@gentoo.org>
Date: Thu, 18 Jan 2018 14:33:27 -0500
From: Christopher Díaz Riveros <chrisadr@...too.org>
To: hannes@...xchg.org, mhocko@...nel.org, vdavydov.dev@...il.com
Cc: Christopher Díaz Riveros <chrisadr@...too.org>,
cgroups@...r.kernel.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: [PATCH-next] MEMCG: memcontrol: make local symbol static
Fixes the following sparse warning:
mm/memcontrol.c:1097:14: warning:
symbol 'memcg1_stats' was not declared. Should it be static?
Signed-off-by: Christopher Díaz Riveros <chrisadr@...too.org>
---
mm/memcontrol.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index c3d1eaef752d..c992491dfb03 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -1094,7 +1094,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,
--
2.15.1
Powered by blists - more mailing lists