diff options
author | Tommi Rantala <tt.rantala@gmail.com> | 2009-12-14 20:57:48 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-15 11:53:10 -0500 |
commit | 3428838d8e88fb766143c913cf3e777b000f8e07 (patch) | |
tree | b95482bd87b570f31f409d59c7da8e7817c96e1b | |
parent | 1b604d75bbb6e28628c5a95a433432973c33d581 (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.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' }, |