]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sections: fix section conflicts in mm/percpu.c
authorAndi Kleen <ak@linux.intel.com>
Fri, 28 Sep 2012 00:20:09 +0000 (10:20 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 5 Oct 2012 04:01:17 +0000 (14:01 +1000)
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@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",