提交 0df0ed6d 编写于 作者: Y Yang Zhong 提交者: Lin Wang

x86/fpu: Fix inline prefix warnings

mainline inclusion
from mainline-v5.17-rc1
commit c862dcd1
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I5RQLJ
CVE: NA

Intel-SIG: commit c862dcd1 x86/fpu: Fix inline prefix warnings.

--------------------------------

Fix sparse warnings in xstate and remove inline prefix.

Fixes: 980fe2fd ("x86/fpu: Extend fpu_xstate_prctl() with guest permissions")
Signed-off-by: NYang Zhong <yang.zhong@intel.com>
Reported-by: Nkernel test robot <lkp@intel.com>
Message-Id: <20220113180825.322333-1-yang.zhong@intel.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: NLin Wang <lin.x.wang@intel.com>
上级 7b32cbb5
......@@ -113,7 +113,7 @@ static inline void fpstate_free(struct fpu *fpu) { }
/* fpstate-related functions which are exported to KVM */
extern void fpstate_clear_xstate_component(struct fpstate *fps, unsigned int xfeature);
extern inline u64 xstate_get_guest_group_perm(void);
extern u64 xstate_get_guest_group_perm(void);
/* KVM specific functions */
extern bool fpu_alloc_guest_fpstate(struct fpu_guest *gfpu);
......
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册