Re: [PATCH -next] x86: make setup_xstate_init() __init

Previous thread: Re: ksoftirqd high cpu load on kernels 2.6.24 to 2.6.27-rc1-mm1 by Dushan Tcholich on Friday, August 29, 2008 - 6:48 pm. (17 messages)

Next thread: [PATCH 0/2] TPM by Rajiv Andrade on Friday, August 29, 2008 - 8:05 pm. (7 messages)
From: Alexey Dobriyan
Date: Friday, August 29, 2008 - 7:03 pm

WARNING: vmlinux.o(.text+0x22453): Section mismatch in reference from the function setup_xstate_init() to the function .init.text:__alloc_bootmem()
The function setup_xstate_init() references the function __init __alloc_bootmem().
This is often because setup_xstate_init lacks a __init annotation or the annotation of __alloc_bootmem is wrong.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 arch/x86/kernel/xsave.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/x86/kernel/xsave.c
+++ b/arch/x86/kernel/xsave.c
@@ -272,7 +272,7 @@ void __cpuinit xsave_init(void)
 /*
  * setup the xstate image representing the init state
  */
-void setup_xstate_init(void)
+static void __init setup_xstate_init(void)
 {
 	init_xstate_buf = alloc_bootmem(xstate_size);
 	init_xstate_buf->i387.mxcsr = MXCSR_DEFAULT;

--

From: Ingo Molnar
Date: Saturday, September 6, 2008 - 10:01 am

applied to tip/x86/xsave, thanks Alexey.

	Ingo
--

Previous thread: Re: ksoftirqd high cpu load on kernels 2.6.24 to 2.6.27-rc1-mm1 by Dushan Tcholich on Friday, August 29, 2008 - 6:48 pm. (17 messages)

Next thread: [PATCH 0/2] TPM by Rajiv Andrade on Friday, August 29, 2008 - 8:05 pm. (7 messages)