aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Thelen <[email protected]>2018-06-07 17:07:23 -0700
committerLinus Torvalds <[email protected]>2018-06-07 17:34:36 -0700
commit8dd53fd3b702c12050ec5ddd07b56f8c4608ebea (patch)
treeec7edc658d5343c7321b6f2a17ea5ecc41a86750
parent9ccc361716362e8abb01d9944f8df97b4aac3e23 (diff)
memcg: mark memcg1_events static const
Mark memcg1_events static: it's only used by memcontrol.c. And mark it const: it's not modified. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Greg Thelen <[email protected]> Acked-by: Michal Hocko <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Vladimir Davydov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--mm/memcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 2751259f0a76..847a775af225 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -3083,7 +3083,7 @@ static int memcg_numa_stat_show(struct seq_file *m, void *v)
#endif /* CONFIG_NUMA */
/* Universal VM events cgroup1 shows, original sort order */
-unsigned int memcg1_events[] = {
+static const unsigned int memcg1_events[] = {
PGPGIN,
PGPGOUT,
PGFAULT,