sections: fix section conflicts in mm/percpu.c
authorAndi Kleen <ak@linux.intel.com>
Fri, 5 Oct 2012 00:12:07 +0000 (17:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Oct 2012 18:04:44 +0000 (03:04 +0900)
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/percpu.h
mm/percpu.c

index 2b9f82c037c9279a6e26e8ea7e063ca3131b61b6..cc88172c7d9a827f919592eba81275c052f9046b 100644 (file)
@@ -107,7 +107,7 @@ enum pcpu_fc {
 
        PCPU_FC_NR,
 };
-extern const char *pcpu_fc_names[PCPU_FC_NR];
+extern const char * const pcpu_fc_names[PCPU_FC_NR];
 
 extern enum pcpu_fc pcpu_chosen_fc;
 
index bb4be7435ce34bad95f11c5bb59c435aba38f64f..ddc5efb9c5bbe419d790f7e87af82ec7d30cffbc 100644 (file)
@@ -1370,7 +1370,7 @@ int __init pcpu_setup_first_chunk(const struct pcpu_alloc_info *ai,
 
 #ifdef CONFIG_SMP
 
-const char *pcpu_fc_names[PCPU_FC_NR] __initdata = {
+const char * const pcpu_fc_names[PCPU_FC_NR] __initconst = {
        [PCPU_FC_AUTO]  = "auto",
        [PCPU_FC_EMBED] = "embed",
        [PCPU_FC_PAGE]  = "page",
This page took 0.02836 seconds and 5 git commands to generate.