OSDN Git Service

x86: make setup_xstate_init() __init
authorAlexey Dobriyan <adobriyan@gmail.com>
Sat, 30 Aug 2008 02:03:34 +0000 (06:03 +0400)
committerIngo Molnar <mingo@elte.hu>
Sat, 6 Sep 2008 17:01:18 +0000 (19:01 +0200)
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>
arch/x86/kernel/xsave.c

index 07713d6..ed5274a 100644 (file)
@@ -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;