]> err.no Git - linux-2.6/commitdiff
x86: section mismatch fixes, #2
authorJacek Luczak <difrost.kernel@gmail.com>
Fri, 11 Apr 2008 11:28:49 +0000 (13:28 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 26 Apr 2008 15:35:48 +0000 (17:35 +0200)
This patch fixes section mismatch warnings in smpboot_setup_io_apic().

WARNING: arch/x86/kernel/built-in.o(.text+0x11781): Section mismatch in reference from the function smpboot_setup_io_apic()
to the function .init.text:setup_IO_APIC()
The function smpboot_setup_io_apic() references
the function __init setup_IO_APIC().
This is often because smpboot_setup_io_apic lacks a __init
annotation or the annotation of setup_IO_APIC is wrong.

Signed-off-by: Jacek Luczak <luczak.jacek@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/asm-x86/mach-default/smpboot_hooks.h

index 3ff2c5bff93a6c0bd014f538ec41c85b1d31691f..56d0e1fa025895d1af57588e22a44820ec08a59e 100644 (file)
@@ -33,7 +33,7 @@ static inline void smpboot_restore_warm_reset_vector(void)
        *((volatile long *) phys_to_virt(0x467)) = 0;
 }
 
-static inline void smpboot_setup_io_apic(void)
+static inline void __init smpboot_setup_io_apic(void)
 {
        /*
         * Here we can be sure that there is an IO-APIC in the system. Let's