All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/3] x86: Section mismatch fixes
@ 2008-04-11 11:28 Jacek Luczak
  0 siblings, 0 replies; only message in thread
From: Jacek Luczak @ 2008-04-11 11:28 UTC (permalink / raw)
  To: Ingo Molnar, LKML, linux-next, tglx

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>

---
 smpboot_hooks.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/asm-x86/mach-default/smpboot_hooks.h b/include/asm-x86/mach-default/smpboot_hooks.h
index 3ff2c5b..56d0e1f 100644
--- a/include/asm-x86/mach-default/smpboot_hooks.h
+++ b/include/asm-x86/mach-default/smpboot_hooks.h
@@ -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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-11 11:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-11 11:28 [PATCH 2/3] x86: Section mismatch fixes Jacek Luczak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.