From: Greg Thelen Date: Fri, 8 Jun 2018 00:07:23 +0000 (-0700) Subject: memcg: mark memcg1_events static const X-Git-Tag: android-x86-8.1-r1~922^2~72 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8dd53fd3b702c12050ec5ddd07b56f8c4608ebea;p=android-x86%2Fkernel.git 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/20180503192940.94971-1-gthelen@google.com Signed-off-by: Greg Thelen Acked-by: Michal Hocko Cc: Johannes Weiner Cc: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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,