Skip to content
Snippets Groups Projects
Commit 9a2f45ff authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds
Browse files

mm/debug.c: make "migrate_reason_names[]" const char *

parent c999fbd3
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment