]> Git Repo - linux.git/commitdiff
page-types: constify read only arrays
authorTommi Rantala <[email protected]>
Tue, 15 Dec 2009 01:57:48 +0000 (17:57 -0800)
committerLinus Torvalds <[email protected]>
Tue, 15 Dec 2009 16:53:10 +0000 (08:53 -0800)
Signed-off-by: Tommi Rantala <[email protected]>
Cc: Randy Dunlap <[email protected]>
Cc: Wu Fengguang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Documentation/vm/page-types.c

index ea44ea502da1ef60e2a04b3ab9e42cf643ac7711..59a4614f4b90398a46016774541cfc1bb1b14353 100644 (file)
 #define BIT(name)              (1ULL << KPF_##name)
 #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_ERROR]             = "E:error",
        [KPF_REFERENCED]        = "R:referenced",
@@ -173,7 +173,7 @@ static int          kpageflags_fd;
 static int             opt_hwpoison;
 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_forget_fd;
 
@@ -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' },
        { "pid"       , 1, NULL, 'p' },
        { "file"      , 1, NULL, 'f' },
This page took 0.050534 seconds and 4 git commands to generate.