Skip to content

Commit fa7303e

Browse files
sravnborgLinus Torvalds
authored andcommitted
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>
1 parent 13d8bcd commit fa7303e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/cpu.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ int disable_nonboot_cpus(void)
389389
return error;
390390
}
391391

392-
void enable_nonboot_cpus(void)
392+
void __ref enable_nonboot_cpus(void)
393393
{
394394
int cpu, error;
395395

0 commit comments

Comments
 (0)