lkml.org 
[lkml]   [2008]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] cpu: fix section mismatch warnings for enable_nonboot_cpus
    Date
    Fix following warning:
    WARNING: o-x86_64/kernel/built-in.o(.text+0x36d8b): Section mismatch in reference from the function enable_nonboot_cpus() to the function .cpuinit.text:_cpu_up()

    enable_nonboot_cpus() are used solely from CONFIG_CONFIG_PM_SLEEP_SMP=y
    and PM_SLEEP_SMP imply HOTPLUG_CPU therefore the reference
    to _cpu_up() is valid.
    Annotate enable_nonboot_cpus() with __ref to silence modpost.

    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Cc: Gautham R Shenoy <ego@in.ibm.com>
    ---
    kernel/cpu.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/kernel/cpu.c b/kernel/cpu.c
    index e0d3a4f..2eff3f6 100644
    --- a/kernel/cpu.c
    +++ b/kernel/cpu.c
    @@ -389,7 +389,7 @@ int disable_nonboot_cpus(void)
    return error;
    }

    -void enable_nonboot_cpus(void)
    +void __ref enable_nonboot_cpus(void)
    {
    int cpu, error;

    --
    1.5.4.rc3.14.g44397


    \
     
     \ /
      Last update: 2008-01-31 23:15    [W:0.018 / U:30.248 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site