From: Jacek Luczak Date: Sat, 12 Apr 2008 15:39:57 +0000 (+0200) Subject: x86: uniq_ioapic_id - fix section mismatch warning X-Git-Tag: v2.6.26-rc1~1045^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=991074fd35e9e584d3cc28b4cba2e12743aeaa46;p=platform%2Fkernel%2Flinux-3.10.git x86: uniq_ioapic_id - fix section mismatch warning 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 Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index 23e8432..3e2c54d 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c @@ -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) &&