2024-05-30 19:45:43

by Chang S. Bae

[permalink] [raw]
Subject: [PATCH] x86/fpu: Remove export of mxcsr_feature_mask

The variable was previously referenced in KVM code but is no longer used.
Don't export it.

Signed-off-by: Chang S. Bae <[email protected]>
---
arch/x86/kernel/fpu/init.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/arch/x86/kernel/fpu/init.c b/arch/x86/kernel/fpu/init.c
index 998a08f17e33..45d966492159 100644
--- a/arch/x86/kernel/fpu/init.c
+++ b/arch/x86/kernel/fpu/init.c
@@ -94,7 +94,6 @@ static void __init fpu__init_system_early_generic(void)
* Boot time FPU feature detection code:
*/
unsigned int mxcsr_feature_mask __ro_after_init = 0xffffffffu;
-EXPORT_SYMBOL_GPL(mxcsr_feature_mask);

static void __init fpu__init_system_mxcsr(void)
{
--
2.34.1



2024-05-31 06:44:03

by Nikolay Borisov

[permalink] [raw]
Subject: Re: [PATCH] x86/fpu: Remove export of mxcsr_feature_mask



On 30.05.24 г. 22:27 ч., Chang S. Bae wrote:
> The variable was previously referenced in KVM code but is no longer used.
> Don't export it.
>
> Signed-off-by: Chang S. Bae <[email protected]>

FWIW the usage of this variable got removed in ea4d6938d4c0 ("x86/fpu:
Replace KVMs home brewed FPU copy from user")

Reviewed-by: Nikolay Borisov <[email protected]>

2024-05-31 17:23:14

by Chang S. Bae

[permalink] [raw]
Subject: Re: [PATCH] x86/fpu: Remove export of mxcsr_feature_mask

On 5/30/2024 11:43 PM, Nikolay Borisov wrote:
>
> FWIW the usage of this variable got removed in ea4d6938d4c0 ("x86/fpu:
> Replace KVMs home brewed FPU copy from user")
>
> Reviewed-by: Nikolay Borisov <[email protected]>

Thanks!