Assuming that struct fpu won't be accessed directly by drivers, Using __GENKSYMS__ macro to avoid kabi change caused by following commits: 87d0e5be0fac ("x86/fpu: Provide struct fpstate") 2f27b5034244 ("x86/fpu: Remove fpu::state") 75c52dad5e32 ("x86/fpu: Prepare for sanitizing KVM FPU code") 6f6a7c09c406 ("x86/fpu: Add members to struct fpu to cache permission information")
Signed-off-by: Zheng Zengkai zhengzengkai@huawei.com --- arch/x86/include/asm/fpu/types.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/arch/x86/include/asm/fpu/types.h b/arch/x86/include/asm/fpu/types.h index 3c06c82ab355..941a9abc2735 100644 --- a/arch/x86/include/asm/fpu/types.h +++ b/arch/x86/include/asm/fpu/types.h @@ -453,6 +453,7 @@ struct fpu { */ unsigned long avx512_timestamp;
+#ifndef __GENKSYMS__ /* * @fpstate: * @@ -485,6 +486,9 @@ struct fpu { * are not longer containing the tasks FPU register state. */ struct fpstate __fpstate; +#else + union fpregs_state state; +#endif /* * WARNING: '__fpstate' is dynamically-sized. Do not put * anything after it here.