Message ID | 20190906143012.28698-1-colin.king@canonical.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | mm/shmem.c: make array 'values' static const, makes object smaller | expand |
diff --git a/mm/shmem.c b/mm/shmem.c index 77d2df011c0e..30e1de87bdca 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -3934,7 +3934,7 @@ int __init shmem_init(void) static ssize_t shmem_enabled_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) { - int values[] = { + static const int values[] = { SHMEM_HUGE_ALWAYS, SHMEM_HUGE_WITHIN_SIZE, SHMEM_HUGE_ADVISE,