From: Sergey Senozhatsky Date: Tue, 8 Jan 2019 13:02:25 +0000 (+0900) Subject: x86/fpu: Move init_xstate_size() to __init section X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=653a561bb2fd34e470594eb1bdba3357630e8df7;p=linux.git x86/fpu: Move init_xstate_size() to __init section WARNING: vmlinux.o(.text.unlikely+0x1c05): Section mismatch in reference from the function init_xstate_size() to the function .init.text:get_xsave_size() WARNING: vmlinux.o(.text.unlikely+0x1c19): Section mismatch in reference from the function init_xstate_size() to the function .init.text:get_xsaves_size() Signed-off-by: Sergey Senozhatsky Signed-off-by: Thomas Gleixner Cc: Borislav Petkov Cc: Peter Zijlstra Cc: Andy Lutomirski Cc: "H . Peter Anvin" Cc: Sergey Senozhatsky Link: https://lkml.kernel.org/r/20190108130225.5066-2-sergey.senozhatsky@gmail.com --- diff --git a/arch/x86/kernel/fpu/xstate.c b/arch/x86/kernel/fpu/xstate.c index 9cc108456d0be..d7432c2b10514 100644 --- a/arch/x86/kernel/fpu/xstate.c +++ b/arch/x86/kernel/fpu/xstate.c @@ -669,7 +669,7 @@ static bool is_supported_xstate_size(unsigned int test_xstate_size) return false; } -static int init_xstate_size(void) +static int __init init_xstate_size(void) { /* Recompute the context size for enabled features: */ unsigned int possible_xstate_size;