Skip to content

Commit

Permalink
cpu: fix section mismatch warnings for enable_nonboot_cpus
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Gautham R Shenoy <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
sravnborg authored and Linus Torvalds committed Feb 8, 2008
1 parent 13d8bcd commit fa7303e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fa7303e

Please sign in to comment.