diff --git a/include/linux/migrate.h b/include/linux/migrate.h index f2b4abbca55e75f82c55dd6b8f7771d54738a23b..617615fa11ce407ed28053c4a0dbbcaf6062b406 100644 --- a/include/linux/migrate.h +++ b/include/linux/migrate.h @@ -29,7 +29,7 @@ enum migrate_reason { }; /* In mm/debug.c; also keep sync with include/trace/events/migrate.h */ -extern char *migrate_reason_names[MR_TYPES]; +extern const char *migrate_reason_names[MR_TYPES]; static inline struct page *new_page_nodemask(struct page *page, int preferred_nid, nodemask_t *nodemask) diff --git a/mm/debug.c b/mm/debug.c index 72daa4b087ba255216d2b5e6285e3d5c2b3026a1..0abb987dad9b3d697f252469d2111dc61f530913 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",