diff options
Diffstat (limited to 'Documentation/vm')
-rw-r--r-- | Documentation/vm/page-types.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/vm/page-types.c b/Documentation/vm/page-types.c index ea44ea502da1..59a4614f4b90 100644 --- a/Documentation/vm/page-types.c +++ b/Documentation/vm/page-types.c | |||
@@ -100,7 +100,7 @@ | |||
100 | #define BIT(name) (1ULL << KPF_##name) | 100 | #define BIT(name) (1ULL << KPF_##name) |
101 | #define BITS_COMPOUND (BIT(COMPOUND_HEAD) | BIT(COMPOUND_TAIL)) | 101 | #define BITS_COMPOUND (BIT(COMPOUND_HEAD) | BIT(COMPOUND_TAIL)) |
102 | 102 | ||
103 | static char *page_flag_names[] = { | 103 | static const char *page_flag_names[] = { |
104 | [KPF_LOCKED] = "L:locked", | 104 | [KPF_LOCKED] = "L:locked", |
105 | [KPF_ERROR] = "E:error", | 105 | [KPF_ERROR] = "E:error", |
106 | [KPF_REFERENCED] = "R:referenced", | 106 | [KPF_REFERENCED] = "R:referenced", |
@@ -173,7 +173,7 @@ static int kpageflags_fd; | |||
173 | static int opt_hwpoison; | 173 | static int opt_hwpoison; |
174 | static int opt_unpoison; | 174 | static int opt_unpoison; |
175 | 175 | ||
176 | static char *hwpoison_debug_fs = "/debug/hwpoison"; | 176 | static const char hwpoison_debug_fs[] = "/debug/hwpoison"; |
177 | static int hwpoison_inject_fd; | 177 | static int hwpoison_inject_fd; |
178 | static int hwpoison_forget_fd; | 178 | static int hwpoison_forget_fd; |
179 | 179 | ||
@@ -885,7 +885,7 @@ static void parse_bits_mask(const char *optarg) | |||
885 | } | 885 | } |
886 | 886 | ||
887 | 887 | ||
888 | static struct option opts[] = { | 888 | static const struct option opts[] = { |
889 | { "raw" , 0, NULL, 'r' }, | 889 | { "raw" , 0, NULL, 'r' }, |
890 | { "pid" , 1, NULL, 'p' }, | 890 | { "pid" , 1, NULL, 'p' }, |
891 | { "file" , 1, NULL, 'f' }, | 891 | { "file" , 1, NULL, 'f' }, |