From: Alexey Makhalov Date: Mon, 23 Mar 2020 19:57:03 +0000 (+0000) Subject: x86/vmware: Make vmware_select_hypercall() __init X-Git-Tag: block-5.7-2020-04-09~22^2~4 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=14388ae24544c4cc09056773c886839a2c8d256b;p=linux-block.git x86/vmware: Make vmware_select_hypercall() __init vmware_select_hypercall() is used only by the __init functions, and should be annotated with __init as well. Signed-off-by: Alexey Makhalov Signed-off-by: Borislav Petkov Reviewed-by: Thomas Hellstrom Reviewed-by: Thomas Gleixner Link: https://lkml.kernel.org/r/20200323195707.31242-2-amakhalov@vmware.com --- diff --git a/arch/x86/kernel/cpu/vmware.c b/arch/x86/kernel/cpu/vmware.c index 46d732696c1c..d280560fd75e 100644 --- a/arch/x86/kernel/cpu/vmware.c +++ b/arch/x86/kernel/cpu/vmware.c @@ -213,7 +213,7 @@ static void __init vmware_platform_setup(void) vmware_set_capabilities(); } -static u8 vmware_select_hypercall(void) +static u8 __init vmware_select_hypercall(void) { int eax, ebx, ecx, edx;