Skip to contentSkip to conversation

MEMCG: memcontrol: make local symbol static

PATCH-next Christopher Díaz Riveros 1 participant 1 message Jan 18, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Fixes the following sparse warning:

mm/memcontrol.c:1097:14: warning:
symbol 'memcg1_stats' was not declared. Should it be static?

---
 mm/memcontrol.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memcontrol.c +1 -1
index c3d1eaef752d..c992491dfb03 100644
@@ -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,
Signature · 1 line
2.15.1