summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/fpu/xstate.c
diff options
context:
space:
mode:
authorYang Zhong <yang.zhong@intel.com>2022-01-13 13:08:25 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2022-01-14 13:48:38 -0500
commitc862dcd199759d4a45e65dab47b03e3e8a144e3a (patch)
tree5dc1f3ea98d3496c363817dfefbc8f953a04fcc1 /arch/x86/kernel/fpu/xstate.c
parentbf70636d9443c9e0718fd98765ba634e631ed079 (diff)
downloadlinux-c862dcd199759d4a45e65dab47b03e3e8a144e3a.tar.bz2
x86/fpu: Fix inline prefix warnings
Fix sparse warnings in xstate and remove inline prefix. Fixes: 980fe2fddcff ("x86/fpu: Extend fpu_xstate_prctl() with guest permissions") Signed-off-by: Yang Zhong <yang.zhong@intel.com> Reported-by: kernel test robot <lkp@intel.com> Message-Id: <20220113180825.322333-1-yang.zhong@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kernel/fpu/xstate.c')
-rw-r--r--arch/x86/kernel/fpu/xstate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/fpu/xstate.c b/arch/x86/kernel/fpu/xstate.c
index 10fe072f1c92..02b3ddaf4f75 100644
--- a/arch/x86/kernel/fpu/xstate.c
+++ b/arch/x86/kernel/fpu/xstate.c
@@ -1744,7 +1744,7 @@ static inline int xstate_request_perm(unsigned long idx, bool guest)
}
#endif /* !CONFIG_X86_64 */
-inline u64 xstate_get_guest_group_perm(void)
+u64 xstate_get_guest_group_perm(void)
{
return xstate_get_group_perm(true);
}