diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-08-29 22:03:34 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-06 13:01:18 -0400 |
commit | a19aac8548d85cf15d744335b8e82201da760d80 (patch) | |
tree | aae142c439df98caeb21b7d8457acdb6a29b2971 /arch | |
parent | fe47784ba5cbb6b713c013e046859946789b45e4 (diff) |
x86: make setup_xstate_init() __init
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>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/xsave.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/xsave.c b/arch/x86/kernel/xsave.c index 07713d64debe..ed5274a5bb0f 100644 --- a/arch/x86/kernel/xsave.c +++ b/arch/x86/kernel/xsave.c | |||
@@ -272,7 +272,7 @@ void __cpuinit xsave_init(void) | |||
272 | /* | 272 | /* |
273 | * setup the xstate image representing the init state | 273 | * setup the xstate image representing the init state |
274 | */ | 274 | */ |
275 | void setup_xstate_init(void) | 275 | static void __init setup_xstate_init(void) |
276 | { | 276 | { |
277 | init_xstate_buf = alloc_bootmem(xstate_size); | 277 | init_xstate_buf = alloc_bootmem(xstate_size); |
278 | init_xstate_buf->i387.mxcsr = MXCSR_DEFAULT; | 278 | init_xstate_buf->i387.mxcsr = MXCSR_DEFAULT; |