]> xenbits.xensource.com Git - xenclient/kernel.git/commitdiff
commit 88d20328cd66ee05f9b7f4d414640700db69d82b git-f8657e1b55901e6c227094258d1fa3642fa242bd-xen
authort_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)
committert_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)
Author: Vivek Goyal <vgoyal@in.ibm.com>
Date:   Thu Jan 11 01:52:44 2007 +0100

    [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>
init/main.c

index 8651a720a092c4ade7e530c01b57b040c3e52539..1c642753d60aee26d1cb5d584e9bd7aa4f5a7223 100644 (file)
@@ -664,7 +664,7 @@ static void __init do_basic_setup(void)
        do_initcalls();
 }
 
-static void do_pre_smp_initcalls(void)
+static void __init do_pre_smp_initcalls(void)
 {
        extern int spawn_ksoftirqd(void);
 #ifdef CONFIG_SMP