[PATCH] cpu: fix section mismatch warnings for enable_nonboot_cpus
- From: Sam Ravnborg <sam@xxxxxxxxxxxx>
- Date: Thu, 31 Jan 2008 23:10:32 +0100
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@xxxxxxxxxxxx>
Cc: Gautham R Shenoy <ego@xxxxxxxxxx>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 0/11] fix 25 section mismatch warnings..
- From: Sam Ravnborg
- [PATCH 0/11] fix 25 section mismatch warnings..
- Prev by Date: [PATCH] cpu: do not annotate exported register_cpu_notifier()
- Next by Date: [PATCH] x86: silence section mismatch warning in smpboot_64.c
- Previous by thread: [PATCH] cpu: do not annotate exported register_cpu_notifier()
- Next by thread: [PATCH] x86: silence section mismatch warning in smpboot_64.c
- Index(es):
Relevant Pages
|