]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sections: fix section conflicts in arch/x86
authorAndi Kleen <ak@linux.intel.com>
Fri, 28 Sep 2012 00:20:04 +0000 (10:20 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Oct 2012 06:50:35 +0000 (16:50 +1000)
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/include/asm/apic.h
arch/x86/kernel/apic/apic_numachip.c
arch/x86/kernel/rtc.c

index f34261296ffb71bc9f62f57ecf069508fe40d9d6..3388034222390150c0ee27674a012e6b3a47095b 100644 (file)
@@ -409,7 +409,7 @@ extern struct apic *apic;
  * to enforce the order with in them.
  */
 #define apic_driver(sym)                                       \
-       static struct apic *__apicdrivers_##sym __used          \
+       static const struct apic *__apicdrivers_##sym __used            \
        __aligned(sizeof(struct apic *))                        \
        __section(.apicdrivers) = { &sym }
 
index bc552cff257834bee7a8c1078112ea46380892d4..a65829ac2b9a1b4cb9517f94318bc106291061ad 100644 (file)
@@ -30,7 +30,7 @@
 
 static int numachip_system __read_mostly;
 
-static struct apic apic_numachip __read_mostly;
+static const struct apic apic_numachip __read_mostly;
 
 static unsigned int get_apic_id(unsigned long x)
 {
@@ -199,7 +199,7 @@ static int numachip_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
        return 0;
 }
 
-static struct apic apic_numachip __refconst = {
+static const struct apic apic_numachip __refconst = {
 
        .name                           = "NumaConnect system",
        .probe                          = numachip_probe,
index af6db6ec5b2a20db3d13861bdb97b878f8371f1e..4929c1be0ac0077f7c279fe296ece8e425684c9a 100644 (file)
@@ -225,7 +225,7 @@ static struct platform_device rtc_device = {
 static __init int add_rtc_cmos(void)
 {
 #ifdef CONFIG_PNP
-       static const char *ids[] __initconst =
+       static const char * const  const ids[] __initconst =
            { "PNP0b00", "PNP0b01", "PNP0b02", };
        struct pnp_dev *dev;
        struct pnp_id *id;