lkml.org 
[lkml]   [2011]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 1/3] jump_label, x86: Fix section mismatch
    WARNING: arch/x86/kernel/built-in.o(.text+0x4c71): Section mismatch in
    reference from the function arch_jump_label_transform_static() to the
    function .init.text:text_poke_early()
    The function arch_jump_label_transform_static() references
    the function __init text_poke_early().
    This is often because arch_jump_label_transform_static lacks a __init
    annotation or the annotation of text_poke_early is wrong.

    Cc: Jason Baron <jbaron@redhat.com>
    Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
    ---
    arch/x86/kernel/jump_label.c | 2 +-
    kernel/jump_label.c | 2 +-
    2 files changed, 2 insertions(+), 2 deletions(-)

    Index: linux-2.6/arch/x86/kernel/jump_label.c
    ===================================================================
    --- linux-2.6.orig/arch/x86/kernel/jump_label.c
    +++ linux-2.6/arch/x86/kernel/jump_label.c
    @@ -50,7 +50,7 @@ void arch_jump_label_transform(struct ju
    put_online_cpus();
    }

    -void arch_jump_label_transform_static(struct jump_entry *entry,
    +__init_or_module void arch_jump_label_transform_static(struct jump_entry *entry,
    enum jump_label_type type)
    {
    __jump_label_transform(entry, type, text_poke_early);
    Index: linux-2.6/kernel/jump_label.c
    ===================================================================
    --- linux-2.6.orig/kernel/jump_label.c
    +++ linux-2.6/kernel/jump_label.c
    @@ -142,7 +142,7 @@ static int __jump_label_text_reserved(st
    * running code can override this to make the non-live update case
    * cheaper.
    */
    -void __weak arch_jump_label_transform_static(struct jump_entry *entry,
    +void __weak __init_or_module arch_jump_label_transform_static(struct jump_entry *entry,
    enum jump_label_type type)
    {
    arch_jump_label_transform(entry, type);



    \
     
     \ /
      Last update: 2011-12-06 18:35    [W:0.020 / U:1.652 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site