Skip to contentSkip to conversation

x86, sections, numachip: Remove useless __read_mostly

PATCH In review Andi Kleen 2 participants 2 messages Feb 8, 2014 x86

lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 1/1 x86, sections, numachip: Remove useless __read_mostly

const __read_mostly does not make any sense, because const data is already read-only. Remove the __read_mostly for the numachip APIC driver. This avoids a LTO section conflict compile problem.

---
 arch/x86/kernel/apic/apic_numachip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/apic/apic_numachip.c +1 -1
index 3e67f9e..a481bb6 100644
@@ -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)
 {
Signature · 1 line
1.8.5.2