x86, sections, numachip: Remove useless __read_mostly
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.
Signed-off-by Andi Kleen <[email protected]>
--- arch/x86/kernel/apic/apic_numachip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/apic/apic_numachip.c +1 -1
@@ -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
Quoted 7 lines · Andi Kleen
const
__read_mostlydoes not make any sense, because const data is already read-only. Remove the__read_mostlyfor the numachip APIC driver. This avoids a LTO section conflict compile problem.Signed-off-by Andi Kleen <[email protected]>
Acked-by David Rientjes <[email protected]>