memcg: mark memcg1_events static const
Subsystems (2)
PATCH 1/1 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.
Signed-off-by Greg Thelen <[email protected]>
--- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memcontrol.c +1 -1
@@ -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 ,
Signature · 1 line
2.17.0.441.gb46fe60e1d-goog
Quoted 4 lines · Greg Thelen
Mark
memcg1_eventsstatic: it's only used bymemcontrol.c. And mark it const: it's not modified.Signed-off-by Greg Thelen <[email protected]>
Acked-by Michal Hocko <[email protected]>
Quoted 19 lines
--- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/memcontrol.c +1
-1@@ -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 ,Signature · 1 line
2.17.0.441.gb46fe60e1d-goog
Signature · 2 lines
Michal Hocko SUSE Labs