Skip to content

Commit

Permalink
x86: Fix section conflict for numachip
Browse files Browse the repository at this point in the history
A variable cannot be both __read_mostly and const. This
is a meaningless combination.

Just make it only const.

This fixes the LTO build with numachip enabled.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1411533139-25708-1-git-send-email-andi@firstfloor.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Andi Kleen authored and Thomas Gleixner committed Oct 8, 2014
1 parent 0e6d311 commit 2dee5c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/apic/apic_numachip.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

static int numachip_system __read_mostly;

static const struct apic apic_numachip __read_mostly;
static const struct apic apic_numachip;

static unsigned int get_apic_id(unsigned long x)
{
Expand Down

0 comments on commit 2dee5c4

Please sign in to comment.