summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/migrate.h2
-rw-r--r--mm/debug.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/migrate.h b/include/linux/migrate.h
index f2b4abbca55e..617615fa11ce 100644
--- a/include/linux/migrate.h
+++ b/include/linux/migrate.h
@@ -29,7 +29,7 @@ enum migrate_reason {
29}; 29};
30 30
31/* In mm/debug.c; also keep sync with include/trace/events/migrate.h */ 31/* In mm/debug.c; also keep sync with include/trace/events/migrate.h */
32extern char *migrate_reason_names[MR_TYPES]; 32extern const char *migrate_reason_names[MR_TYPES];
33 33
34static inline struct page *new_page_nodemask(struct page *page, 34static inline struct page *new_page_nodemask(struct page *page,
35 int preferred_nid, nodemask_t *nodemask) 35 int preferred_nid, nodemask_t *nodemask)
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 @@
17 17
18#include "internal.h" 18#include "internal.h"
19 19
20char *migrate_reason_names[MR_TYPES] = { 20const char *migrate_reason_names[MR_TYPES] = {
21 "compaction", 21 "compaction",
22 "memory_failure", 22 "memory_failure",
23 "memory_hotplug", 23 "memory_hotplug",