aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTommi Rantala <tt.rantala@gmail.com>2009-12-14 20:57:48 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-15 11:53:10 -0500
commit3428838d8e88fb766143c913cf3e777b000f8e07 (patch)
treeb95482bd87b570f31f409d59c7da8e7817c96e1b
parent1b604d75bbb6e28628c5a95a433432973c33d581 (diff)
page-types: constify read only arrays
Signed-off-by: Tommi Rantala <tt.rantala@gmail.com> Cc: Randy Dunlap <rdunlap@xenotime.net> Cc: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--Documentation/vm/page-types.c6
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
103static char *page_flag_names[] = { 103static 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;
173static int opt_hwpoison; 173static int opt_hwpoison;
174static int opt_unpoison; 174static int opt_unpoison;
175 175
176static char *hwpoison_debug_fs = "/debug/hwpoison"; 176static const char hwpoison_debug_fs[] = "/debug/hwpoison";
177static int hwpoison_inject_fd; 177static int hwpoison_inject_fd;
178static int hwpoison_forget_fd; 178static int hwpoison_forget_fd;
179 179
@@ -885,7 +885,7 @@ static void parse_bits_mask(const char *optarg)
885} 885}
886 886
887 887
888static struct option opts[] = { 888static 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' },