Skip to contentSkip to conversation

x86/fpu: Fix inline prefix warnings

PATCH New Yang Zhong 1 participant 1 message Jan 13, 2022

Subsystems (2)
lore
Share & tools
lore

Yang Zhong

author
#0 lore raw

PATCH 1/1 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")
---
 arch/x86/include/asm/fpu/api.h | 2 +-
 arch/x86/kernel/fpu/xstate.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/include/asm/fpu/api.h +1 -1
index a467eb80f9ed..c83b3020350a 100644
@@ -132,7 +132,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);
arch/x86/kernel/fpu/xstate.c +1 -1
index 10fe072f1c92..02b3ddaf4f75 100644
@@ -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);
 }