Skip to contentSkip to conversation

x86/fpu: Update the outdated comment above fpstate_init_user()

PATCH Applied Chao Gao 2 participants 2 messages Mar 24, 2025 – Mar 25, 2025 x86

lore
Share & tools
lore

Chao Gao

author
#0 lore raw

PATCH 1/1 x86/fpu: Update the outdated comment above fpstate_init_user()

fpu_init_fpstate_user() was removed in

commit 582b01b6ab27 ("x86/fpu: Remove old KVM FPU interface").

Update that comment to accurately reflect the current state regarding its callers.

---
 arch/x86/kernel/fpu/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/fpu/core.c +1 -1
index b00e4032d75f..91dabfcaea20 100644
@@ -516,7 +516,7 @@ static inline void fpstate_init_fstate(struct fpstate *fpstate)
 /*
  * Used in two places:
  * 1) Early boot to setup init_fpstate for non XSAVE systems
- * 2) fpu_init_fpstate_user() which is invoked from KVM
+ * 2) fpu_alloc_guest_fpstate() which is invoked from KVM
  */
 void fpstate_init_user(struct fpstate *fpstate)
 {
Signature · 1 line
2.46.1
merge bot Applied
#1 lore raw
The following commit has been merged into the x86/urgent branch of tip:

The following commit has been merged into the x86/urgent branch of tip:

Commit-ID:     878477a5953769d4fe5facc5033481f81d0dfce7
Gitweb:        https://git.kernel.org/tip/878477a5953769d4fe5facc5033481f81d0dfce7
Author:        Chao Gao <[email protected]>
AuthorDate:    Mon, 24 Mar 2025 21:19:27 +08:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Tue, 25 Mar 2025 09:57:33 +01:00

x86/fpu: Update the outdated comment above fpstate_init_user()

fpu_init_fpstate_user() was removed in:

commit 582b01b6ab27 ("x86/fpu: Remove old KVM FPU interface").

Update that comment to accurately reflect the current state regarding its callers.

---
 arch/x86/kernel/fpu/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/fpu/core.c +1 -1
index 1b734a9..91d6341 100644
@@ -508,7 +508,7 @@ static inline void fpstate_init_fstate(struct fpstate *fpstate)
 /*
  * Used in two places:
  * 1) Early boot to setup init_fpstate for non XSAVE systems
- * 2) fpu_init_fpstate_user() which is invoked from KVM
+ * 2) fpu_alloc_guest_fpstate() which is invoked from KVM
  */
 void fpstate_init_user(struct fpstate *fpstate)
 {