LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 0/3] x86: more section mismatch fixes
@ 2008-04-12 15:37 Jacek Luczak
2008-04-12 15:38 ` [PATCH 1/3] x86: trampoline_32.S - switch to .cpuinit.data Jacek Luczak
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Jacek Luczak @ 2008-04-12 15:37 UTC (permalink / raw)
To: Ingo Molnar, Sam Ravnborg, LKML, tglx
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/3] x86: trampoline_32.S - switch to .cpuinit.data
2008-04-12 15:37 [PATCH 0/3] x86: more section mismatch fixes Jacek Luczak
@ 2008-04-12 15:38 ` Jacek Luczak
2008-04-12 15:39 ` [PATCH 2/3] x86: uniq_ioapic_id - fix section mismatch warning Jacek Luczak
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Jacek Luczak @ 2008-04-12 15:38 UTC (permalink / raw)
To: Ingo Molnar, Sam Ravnborg, LKML, tglx
This patch fixes section mismatch warnings of __cpuinit setup_trampoline() on 32-bit host.
Signed-off-by: Jacek Luczak <luczak.jacek@gmail.com>
---
trampoline_32.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/trampoline_32.S b/arch/x86/kernel/trampoline_32.S
index 6458067..d8ccc3c 100644
--- a/arch/x86/kernel/trampoline_32.S
+++ b/arch/x86/kernel/trampoline_32.S
@@ -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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/3] x86: uniq_ioapic_id - fix section mismatch warning
2008-04-12 15:37 [PATCH 0/3] x86: more section mismatch fixes Jacek Luczak
2008-04-12 15:38 ` [PATCH 1/3] x86: trampoline_32.S - switch to .cpuinit.data Jacek Luczak
@ 2008-04-12 15:39 ` Jacek Luczak
2008-04-12 15:41 ` [PATCH 3/3] x86: unlock_ExtINT_logic() - fix section mismatch warnings Jacek Luczak
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Jacek Luczak @ 2008-04-12 15:39 UTC (permalink / raw)
To: Ingo Molnar, Sam Ravnborg, LKML, tglx
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>
---
mpparse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c
index 70744e3..d885f8f 100644
--- a/arch/x86/kernel/mpparse.c
+++ b/arch/x86/kernel/mpparse.c
@@ -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) &&
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 3/3] x86: unlock_ExtINT_logic() - fix section mismatch warnings
2008-04-12 15:37 [PATCH 0/3] x86: more section mismatch fixes Jacek Luczak
2008-04-12 15:38 ` [PATCH 1/3] x86: trampoline_32.S - switch to .cpuinit.data Jacek Luczak
2008-04-12 15:39 ` [PATCH 2/3] x86: uniq_ioapic_id - fix section mismatch warning Jacek Luczak
@ 2008-04-12 15:41 ` Jacek Luczak
2008-04-12 16:57 ` [PATCH 0/3] x86: more section mismatch fixes Sam Ravnborg
2008-04-13 7:34 ` Ingo Molnar
4 siblings, 0 replies; 6+ messages in thread
From: Jacek Luczak @ 2008-04-12 15:41 UTC (permalink / raw)
To: Ingo Molnar, Sam Ravnborg, LKML, tglx
Fix 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.
Signed-off-by: Jacek Luczak <luczak.jacek@gmail.com>
---
io_apic_32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/io_apic_32.c b/arch/x86/kernel/io_apic_32.c
index 2e2f420..696b8e4 100644
--- a/arch/x86/kernel/io_apic_32.c
+++ b/arch/x86/kernel/io_apic_32.c
@@ -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;
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 0/3] x86: more section mismatch fixes
2008-04-12 15:37 [PATCH 0/3] x86: more section mismatch fixes Jacek Luczak
` (2 preceding siblings ...)
2008-04-12 15:41 ` [PATCH 3/3] x86: unlock_ExtINT_logic() - fix section mismatch warnings Jacek Luczak
@ 2008-04-12 16:57 ` Sam Ravnborg
2008-04-13 7:34 ` Ingo Molnar
4 siblings, 0 replies; 6+ messages in thread
From: Sam Ravnborg @ 2008-04-12 16:57 UTC (permalink / raw)
To: Jacek Luczak; +Cc: Ingo Molnar, LKML, tglx
On Sat, Apr 12, 2008 at 05:37:39PM +0200, Jacek Luczak wrote:
>
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 0/3] x86: more section mismatch fixes
2008-04-12 15:37 [PATCH 0/3] x86: more section mismatch fixes Jacek Luczak
` (3 preceding siblings ...)
2008-04-12 16:57 ` [PATCH 0/3] x86: more section mismatch fixes Sam Ravnborg
@ 2008-04-13 7:34 ` Ingo Molnar
4 siblings, 0 replies; 6+ messages in thread
From: Ingo Molnar @ 2008-04-13 7:34 UTC (permalink / raw)
To: Jacek Luczak; +Cc: Sam Ravnborg, LKML, tglx
* Jacek Luczak <difrost.kernel@gmail.com> wrote:
> Hi,
>
> those are patches which fixes some section mismatch stuff in 32-bit
> part of arch/x86.
thanks Jacek, applied.
Ingo
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-04-13 7:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-12 15:37 [PATCH 0/3] x86: more section mismatch fixes Jacek Luczak
2008-04-12 15:38 ` [PATCH 1/3] x86: trampoline_32.S - switch to .cpuinit.data Jacek Luczak
2008-04-12 15:39 ` [PATCH 2/3] x86: uniq_ioapic_id - fix section mismatch warning Jacek Luczak
2008-04-12 15:41 ` [PATCH 3/3] x86: unlock_ExtINT_logic() - fix section mismatch warnings Jacek Luczak
2008-04-12 16:57 ` [PATCH 0/3] x86: more section mismatch fixes Sam Ravnborg
2008-04-13 7:34 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).