Skip to content

Commit c862dcd

Browse files
yangzhonbonzini
authored andcommitted
x86/fpu: Fix inline prefix warnings
Fix sparse warnings in xstate and remove inline prefix. Fixes: 980fe2f ("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>
1 parent bf70636 commit c862dcd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/x86/include/asm/fpu/api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static inline void fpstate_free(struct fpu *fpu) { }
132132
/* fpstate-related functions which are exported to KVM */
133133
extern void fpstate_clear_xstate_component(struct fpstate *fps, unsigned int xfeature);
134134

135-
extern inline u64 xstate_get_guest_group_perm(void);
135+
extern u64 xstate_get_guest_group_perm(void);
136136

137137
/* KVM specific functions */
138138
extern bool fpu_alloc_guest_fpstate(struct fpu_guest *gfpu);

arch/x86/kernel/fpu/xstate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,7 @@ static inline int xstate_request_perm(unsigned long idx, bool guest)
17441744
}
17451745
#endif /* !CONFIG_X86_64 */
17461746

1747-
inline u64 xstate_get_guest_group_perm(void)
1747+
u64 xstate_get_guest_group_perm(void)
17481748
{
17491749
return xstate_get_group_perm(true);
17501750
}

0 commit comments

Comments
 (0)