projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e6d311
)
x86: Fix section conflict for numachip
author
Andi Kleen
<andi@firstfloor.org>
Wed, 24 Sep 2014 04:32:19 +0000
(06:32 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Wed, 8 Oct 2014 09:18:49 +0000
(11:18 +0200)
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>
arch/x86/kernel/apic/apic_numachip.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/apic/apic_numachip.c
b/arch/x86/kernel/apic/apic_numachip.c
index ae915391ebecdbe9d01abb63e5ab787f3c484381..4128b5fcb559ff5a1041ffafe79c99413ab21d7c 100644
(file)
--- a/
arch/x86/kernel/apic/apic_numachip.c
+++ b/
arch/x86/kernel/apic/apic_numachip.c
@@
-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)
{