Skip to content

Commit

Permalink
sections: fix section conflicts in arch/x86
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Oct 5, 2012
1 parent 666e81f commit 75fdd15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/x86/include/asm/apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down
4 changes: 2 additions & 2 deletions arch/x86/kernel/apic/apic_numachip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kernel/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 75fdd15

Please sign in to comment.