Skip to content

Commit 8ad6e40

Browse files
Christopher Díaz Riverostorvalds
authored andcommitted
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/[email protected] Signed-off-by: Christopher Díaz Riveros <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Johannes Weiner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 8d63e4c commit 8ad6e40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/memcontrol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ static bool mem_cgroup_wait_acct_move(struct mem_cgroup *memcg)
10951095
return false;
10961096
}
10971097

1098-
unsigned int memcg1_stats[] = {
1098+
static const unsigned int memcg1_stats[] = {
10991099
MEMCG_CACHE,
11001100
MEMCG_RSS,
11011101
MEMCG_RSS_HUGE,

0 commit comments

Comments
 (0)