]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: uniq_ioapic_id - fix section mismatch warning
authorJacek Luczak <difrost.kernel@gmail.com>
Sat, 12 Apr 2008 15:39:57 +0000 (17:39 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 26 Apr 2008 15:35:47 +0000 (17:35 +0200)
Fix folowing warning:
WARNING: arch/x86/kernel/built-in.o(.text+0x10799): Section mismatch in reference from the function uniq_ioapic_id()

uniq_ioapic_id() is only used by __init mp_register_ioapic(). Annotate uniq_ioapic_id() with __init.

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>
arch/x86/kernel/mpparse.c

index 23e8432a9826a090a1d54af86d99bfec2085dd69..3e2c54dc8b29f2e907021bf84d55081b5f65ffa6 100644 (file)
@@ -817,7 +817,7 @@ static int mp_find_ioapic(int gsi)
        return -1;
 }
 
-static u8 uniq_ioapic_id(u8 id)
+static u8 __init uniq_ioapic_id(u8 id)
 {
 #ifdef CONFIG_X86_32
        if ((boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) &&