Skip to contentSkip to conversation

x86/fpu: Remove additional remnants of math emulation

PATCH Applied Eric Biggers 2 participants 2 messages Sep 26 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/fpu: Remove additional remnants of math emulation

Remove math_emu.h and the declaration of math_emulate(). They are no longer used since support for math emulation was removed.

---
 arch/x86/include/asm/math_emu.h  | 15 ---------------
 arch/x86/include/asm/processor.h |  2 +-
 arch/x86/include/asm/traps.h     |  2 --
 3 files changed, 1 insertion(+), 18 deletions(-)
 delete mode 100644 arch/x86/include/asm/math_emu.h
arch/x86/include/asm/math_emu.h deleted +0 -15
deleted file mode 100644
index 3c42743083ed9..0000000000000
@@ -1,15 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _ASM_X86_MATH_EMU_H
-#define _ASM_X86_MATH_EMU_H
-
-#include <asm/ptrace.h>
-
-/* This structure matches the layout of the data saved to the stack
-   following a device-not-present interrupt, part of it saved
-   automatically by the 80386/80486.
-   */
-struct math_emu_info {
-	long ___orig_eip;
-	struct pt_regs *regs;
-};
-#endif /* _ASM_X86_MATH_EMU_H */
arch/x86/include/asm/processor.h +1 -1
index ec9db0dfa0dff..77488ff5eb8c7 100644
@@ -10,7 +10,7 @@ struct mm_struct;
 struct io_bitmap;
 struct vm86;
 
-#include <asm/math_emu.h>
+#include <asm/ptrace.h>
 #include <asm/segment.h>
 #include <asm/types.h>
 #include <uapi/asm/sigcontext.h>
arch/x86/include/asm/traps.h +0 -2
index 3f24cc472ce9b..e13f1025c62e0 100644
@@ -37,8 +37,6 @@ static inline int get_si_code(unsigned long condition)
 		return TRAP_BRKPT;
 }
 
-void math_emulate(struct math_emu_info *);
-
 bool fault_in_kernel_space(unsigned long address);
 
 #ifdef CONFIG_VMAP_STACK

base-commit: 67639ee98521c1592190c5c67047067a9c3a3fd5

Signature · 1 line
2.55.0
merge bot Applied
#1 lore raw
The following commit has been merged into the x86/fpu branch of tip:

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

Commit-ID:     7606d01b963fc3e4e19dd53ca6c5fdd97f7bc1d7
Gitweb:        https://git.kernel.org/tip/7606d01b963fc3e4e19dd53ca6c5fdd97f7bc1d7
Author:        Eric Biggers <[email protected]>
AuthorDate:    Sat, 26 Sep 2026 10:45:45 -07:00
Committer:     Borislav Petkov (AMD) <[email protected]>
CommitterDate: Sat, 26 Sep 2026 12:01:48 -07:00

x86/fpu: Remove additional remnants of math emulation

Remove math_emu.h and the declaration of math_emulate(). They are no longer used since support for math emulation was removed.

---
 arch/x86/include/asm/math_emu.h  | 15 ---------------
 arch/x86/include/asm/processor.h |  2 +-
 arch/x86/include/asm/traps.h     |  2 --
 3 files changed, 1 insertion(+), 18 deletions(-)
 delete mode 100644 arch/x86/include/asm/math_emu.h
arch/x86/include/asm/math_emu.h deleted +0 -15
deleted file mode 100644
index 3c42743..0000000
@@ -1,15 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _ASM_X86_MATH_EMU_H
-#define _ASM_X86_MATH_EMU_H
-
-#include <asm/ptrace.h>
-
-/* This structure matches the layout of the data saved to the stack
-   following a device-not-present interrupt, part of it saved
-   automatically by the 80386/80486.
-   */
-struct math_emu_info {
-	long ___orig_eip;
-	struct pt_regs *regs;
-};
-#endif /* _ASM_X86_MATH_EMU_H */
arch/x86/include/asm/processor.h +1 -1
index ec9db0d..77488ff 100644
@@ -10,7 +10,7 @@ struct mm_struct;
 struct io_bitmap;
 struct vm86;
 
-#include <asm/math_emu.h>
+#include <asm/ptrace.h>
 #include <asm/segment.h>
 #include <asm/types.h>
 #include <uapi/asm/sigcontext.h>
arch/x86/include/asm/traps.h +0 -2
index 3f24cc4..e13f102 100644
@@ -37,8 +37,6 @@ static inline int get_si_code(unsigned long condition)
 		return TRAP_BRKPT;
 }
 
-void math_emulate(struct math_emu_info *);
-
 bool fault_in_kernel_space(unsigned long address);
 
 #ifdef CONFIG_VMAP_STACK