x86: Fix section conflict for numachip

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>
This commit is contained in:
Andi Kleen 2014-09-24 06:32:19 +02:00 committed by Thomas Gleixner
parent 0e6d3112a4
commit 2dee5c43da
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{