Commit 3428838d authored by Tommi Rantala's avatar Tommi Rantala Committed by Linus Torvalds
Browse files

page-types: constify read only arrays


Signed-off-by: default avatarTommi Rantala <tt.rantala@gmail.com>
Cc: Randy Dunlap <rdunlap@xenotime.net>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1b604d75
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
#define BIT(name) (1ULL << KPF_##name) #define BIT(name) (1ULL << KPF_##name)
#define BITS_COMPOUND (BIT(COMPOUND_HEAD) | BIT(COMPOUND_TAIL)) #define BITS_COMPOUND (BIT(COMPOUND_HEAD) | BIT(COMPOUND_TAIL))
static char *page_flag_names[] = { static const char *page_flag_names[] = {
[KPF_LOCKED] = "L:locked", [KPF_LOCKED] = "L:locked",
[KPF_ERROR] = "E:error", [KPF_ERROR] = "E:error",
[KPF_REFERENCED] = "R:referenced", [KPF_REFERENCED] = "R:referenced",
...@@ -173,7 +173,7 @@ static int kpageflags_fd; ...@@ -173,7 +173,7 @@ static int kpageflags_fd;
static int opt_hwpoison; static int opt_hwpoison;
static int opt_unpoison; static int opt_unpoison;
static char *hwpoison_debug_fs = "/debug/hwpoison"; static const char hwpoison_debug_fs[] = "/debug/hwpoison";
static int hwpoison_inject_fd; static int hwpoison_inject_fd;
static int hwpoison_forget_fd; static int hwpoison_forget_fd;
...@@ -885,7 +885,7 @@ static void parse_bits_mask(const char *optarg) ...@@ -885,7 +885,7 @@ static void parse_bits_mask(const char *optarg)
} }
static struct option opts[] = { static const struct option opts[] = {
{ "raw" , 0, NULL, 'r' }, { "raw" , 0, NULL, 'r' },
{ "pid" , 1, NULL, 'p' }, { "pid" , 1, NULL, 'p' },
{ "file" , 1, NULL, 'f' }, { "file" , 1, NULL, 'f' },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment