projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ccc361
)
memcg: mark memcg1_events static const
author
Greg Thelen
<
[email protected]
>
Fri, 8 Jun 2018 00:07:23 +0000
(17:07 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 8 Jun 2018 00:34:36 +0000
(17:34 -0700)
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]
>
mm/memcontrol.c
patch
|
blob
|
history
diff --git
a/mm/memcontrol.c
b/mm/memcontrol.c
index 2751259f0a76d8ff1ac6390a2ca127af5305c6ed..847a775af225ca6d7e1f8066f32a237f39274450 100644
(file)
--- 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,