[lkml]   [2014]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH] 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 <>
    arch/x86/kernel/apic/apic_numachip.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/arch/x86/kernel/apic/apic_numachip.c b/arch/x86/kernel/apic/apic_numachip.c
    index 3e67f9e..a481bb6 100644
    --- 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)

     \ /
      Last update: 2014-02-08 10:41    [W:2.992 / U:1.364 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site