Commit:     88d20328cd66ee05f9b7f4d414640700db69d82b
Parent:     0e0be25d31f75f64b6fbe00f0b4e5d6b1ad1438e
Author:     Vivek Goyal <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 11 01:52:44 2007 +0100
Committer:  Andi Kleen <[EMAIL PROTECTED]>
CommitDate: 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
    Signed-off-by: Vivek Goyal <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Andi Kleen <[EMAIL PROTECTED]>
 arch/i386/kernel/setup.c |    2 +-
 init/main.c              |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/i386/kernel/setup.c b/arch/i386/kernel/setup.c
index 1df506d..4b31ad7 100644
--- a/arch/i386/kernel/setup.c
+++ b/arch/i386/kernel/setup.c
@@ -495,7 +495,7 @@ static void set_mca_bus(int x) { }
 /* Overridden in paravirt.c if CONFIG_PARAVIRT */
-char * __attribute__((weak)) memory_setup(void)
+char * __init __attribute__((weak)) memory_setup(void)
        return machine_specific_memory_setup();
diff --git a/init/main.c b/init/main.c
index d908d3e..8b4a7d7 100644
--- a/init/main.c
+++ b/init/main.c
@@ -695,7 +695,7 @@ static void __init do_basic_setup(void)
-static void do_pre_smp_initcalls(void)
+static void __init do_pre_smp_initcalls(void)
        extern int spawn_ksoftirqd(void);
 #ifdef CONFIG_SMP
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to