lkml.org 
[lkml]   [2006]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subjectide: fix section mismatch warning
    In latest -mm ide-code.o gave a number of warnings like the following:

    WARNING: drivers/ide/ide-core.o - Section mismatch: reference to \
    .init.text: from .text between 'init_module' (at offset 0x1f97) and \
    'cleanup_module'

    The warning was caused by init_module() calling parse_option() and
    ide_init() both declared __init.

    Declaring init_module() __init fixes the warnings.

    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    ---
    Compiletime tested with allmodconfig on amd64 only.

    diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c
    index b2cc437..3fdab56 100644
    --- a/drivers/ide/ide.c
    +++ b/drivers/ide/ide.c
    @@ -2058,7 +2058,7 @@ static void __init parse_options (char *
    }
    }

    -int init_module (void)
    +int __init init_module (void)
    {
    parse_options(options);
    return ide_init();
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2006-02-26 12:20    [W:0.024 / U:148.084 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site