Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sections: fix section conflicts in arch/x86

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Andi Kleen and committed by
Linus Torvalds
75fdd155 666e81fd

+4 -4
+1 -1
arch/x86/include/asm/apic.h
··· 409 409 * to enforce the order with in them. 410 410 */ 411 411 #define apic_driver(sym) \ 412 - static struct apic *__apicdrivers_##sym __used \ 412 + static const struct apic *__apicdrivers_##sym __used \ 413 413 __aligned(sizeof(struct apic *)) \ 414 414 __section(.apicdrivers) = { &sym } 415 415
+2 -2
arch/x86/kernel/apic/apic_numachip.c
··· 30 30 31 31 static int numachip_system __read_mostly; 32 32 33 - static struct apic apic_numachip __read_mostly; 33 + static const struct apic apic_numachip __read_mostly; 34 34 35 35 static unsigned int get_apic_id(unsigned long x) 36 36 { ··· 199 199 return 0; 200 200 } 201 201 202 - static struct apic apic_numachip __refconst = { 202 + static const struct apic apic_numachip __refconst = { 203 203 204 204 .name = "NumaConnect system", 205 205 .probe = numachip_probe,
+1 -1
arch/x86/kernel/rtc.c
··· 225 225 static __init int add_rtc_cmos(void) 226 226 { 227 227 #ifdef CONFIG_PNP 228 - static const char *ids[] __initconst = 228 + static const char * const const ids[] __initconst = 229 229 { "PNP0b00", "PNP0b01", "PNP0b02", }; 230 230 struct pnp_dev *dev; 231 231 struct pnp_id *id;