]> git.baikalelectronics.ru Git - kernel.git/commit
cpu: fix section mismatch warnings for enable_nonboot_cpus
authorSam Ravnborg <sam@ravnborg.org>
Fri, 8 Feb 2008 12:21:55 +0000 (04:21 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:41 +0000 (09:22 -0800)
commit6ea05a45528c090fd848b58bc4ebcef0975aa6b2
tree6080eeec19aa52720dd20f3237ad3ca5aef9a82a
parent91e828a1b344542dc07ea8d651889e244a222429
cpu: fix section mismatch warnings for enable_nonboot_cpus

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cpu.c