aboutsummaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@in.ibm.com>2007-01-10 19:52:44 -0500
committerAndi Kleen <andi@basil.nowhere.org>2007-01-10 19:52:44 -0500
commit88d20328cd66ee05f9b7f4d414640700db69d82b (patch)
tree07c4f8c8593acf36e3e1687a861f97cc3eff6c34 /init/main.c
parent0e0be25d31f75f64b6fbe00f0b4e5d6b1ad1438e (diff)
[PATCH] i386: Convert some functions to __init to avoid MODPOST warnings
o Some functions which should have been in init sections as they are called only once. Put them in init sections. Otherwise MODPOST generates warning as these functions are placed in .text and they end up accessing something in init sections. WARNING: vmlinux - Section mismatch: reference to .init.text:migration_init from .text between 'do_pre_smp_initcalls' (at offset 0xc01000d1) and 'run_init_process' Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'init/main.c')
-rw-r--r--init/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c
index d908d3e03344..8b4a7d769162 100644
--- a/init/main.c
+++ b/init/main.c
@@ -695,7 +695,7 @@ static void __init do_basic_setup(void)
695 do_initcalls(); 695 do_initcalls();
696} 696}
697 697
698static void do_pre_smp_initcalls(void) 698static void __init do_pre_smp_initcalls(void)
699{ 699{
700 extern int spawn_ksoftirqd(void); 700 extern int spawn_ksoftirqd(void);
701#ifdef CONFIG_SMP 701#ifdef CONFIG_SMP