diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2018-12-28 00:35:59 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-12-28 12:11:48 -0800 |
commit | 9a2f45ff320287d49a3cd90ce68cb58a6da6f5e1 (patch) | |
tree | bfa0446171a70ab9c5eb1f566f1aa88b5f6cdbdd /mm/debug.c | |
parent | c999fbd3dcc6535b1e298b016665ec23ac2b0a9a (diff) | |
download | linux-9a2f45ff320287d49a3cd90ce68cb58a6da6f5e1.tar.bz2 |
mm/debug.c: make "migrate_reason_names[]" const char *
Those strings are immutable as well.
Link: http://lkml.kernel.org/r/20181124090508.GB10877@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/debug.c')
-rw-r--r-- | mm/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/debug.c b/mm/debug.c index 72daa4b087ba..0abb987dad9b 100644 --- a/mm/debug.c +++ b/mm/debug.c @@ -17,7 +17,7 @@ #include "internal.h" -char *migrate_reason_names[MR_TYPES] = { +const char *migrate_reason_names[MR_TYPES] = { "compaction", "memory_failure", "memory_hotplug", |