x86: more section mismatch fixes
cover x86: more section mismatch fixes
Hi,
those are patches which fixes some section mismatch stuff in 32-bit part of arch/x86.
@Ingo, I hope that this time everything will be perfect ;-)
-Jacek
PATCH 1/3 x86: trampoline_32.S - switch to .cpuinit.data
This patch fixes section mismatch warnings of __cpuinit setup_trampoline() on 32-bit host.
--- trampoline_32.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/trampoline_32.S +1 -1
@@ -33,7 +33,7 @@ /* We can free up trampoline after bootup if cpu hotplug is not supported. */ #ifndef CONFIG_HOTPLUG_CPU -.section ".init.data","aw",@progbits +.section ".cpuinit.data","aw",@progbits #else .section .rodata,"a",@progbits #endif
PATCH 2/3 x86: uniq_ioapic_id - fix section mismatch warning
In reply to Jacek LuczakFix 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.
--- mpparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/mpparse.c +1 -1
@@ -820,7 +820,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) &&
PATCH 3/3 x86: unlock_ExtINT_logic() - fix section mismatch warnings
In reply to Jacek LuczakFix following warning:
WARNING: arch/x86/kernel/built-in.o(.text+0x12cc9): Section mismatch in reference from the function unlock_ExtINT_logic()
unlock_ExtINT_logic() is only used by __init check_timer(). Annotate unlock_ExtINT_logic() witch __init.
--- io_apic_32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/io_apic_32.c +1 -1
@@ -2068,7 +2068,7 @@ static void __init setup_nmi(void)* cycles as some i82489DX-based boards have glue logic that keeps the * 8259A interrupt line asserted until INTA. --macro */ -static inline void unlock_ExtINT_logic (void ) +static inline void __init unlock_ExtINT_logic (void ) {int apic, pin, i;struct IO_APIC_route_entry entry0, entry1;
Quoted 4 lines · Jacek Luczak
Hi,
those are patches which fixes some section mismatch stuff in 32-bit part of
arch/x86.
Hi Jacek.
Thanks for taking your time to look inot these and fix them!
Sam
Quoted 4 lines · Jacek Luczak
Hi,
those are patches which fixes some section mismatch stuff in 32-bit part of
arch/x86.
thanks Jacek, applied.
Ingo