x86/fpu: Fix inline prefix warnings
Fix sparse warnings in xstate and remove inline prefix.
Fixes: 980fe2fddc ("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>
This commit is contained in:
committed by
Paolo Bonzini
parent
bf70636d94
commit
c862dcd199
@@ -132,7 +132,7 @@ static inline void fpstate_free(struct fpu *fpu) { }
|
|||||||
/* fpstate-related functions which are exported to KVM */
|
/* fpstate-related functions which are exported to KVM */
|
||||||
extern void fpstate_clear_xstate_component(struct fpstate *fps, unsigned int xfeature);
|
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 */
|
/* KVM specific functions */
|
||||||
extern bool fpu_alloc_guest_fpstate(struct fpu_guest *gfpu);
|
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 */
|
#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);
|
return xstate_get_group_perm(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user