From: Eric Biggers <ebiggers@kernel.org>
To: x86@kernel.org
Cc: linux-kernel@vger.kernel.org, Eric Biggers <ebiggers@kernel.org>
Subject: [PATCH] x86/fpu: Remove additional remnants of math emulation
Date: Sat, 26 Sep 2026 10:45:45 -0700 [thread overview]
Message-ID: <20260926174545.55533-1-ebiggers@kernel.org> (raw)
Remove math_emu.h and the declaration of math_emulate(). They are no
longer used since support for math emulation was removed.
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
---
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
diff --git a/arch/x86/include/asm/math_emu.h b/arch/x86/include/asm/math_emu.h
deleted file mode 100644
index 3c42743083ed9..0000000000000
--- a/arch/x86/include/asm/math_emu.h
+++ /dev/null
@@ -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 */
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h
index ec9db0dfa0dff..77488ff5eb8c7 100644
--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -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>
diff --git a/arch/x86/include/asm/traps.h b/arch/x86/include/asm/traps.h
index 3f24cc472ce9b..e13f1025c62e0 100644
--- a/arch/x86/include/asm/traps.h
+++ b/arch/x86/include/asm/traps.h
@@ -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
--
2.55.0
next reply other threads:[~2026-09-26 17:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-26 17:45 Eric Biggers [this message]
2026-09-26 19:29 ` [tip: x86/fpu] " tip-bot2 for Eric Biggers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260926174545.55533-1-ebiggers@kernel.org \
--to=ebiggers@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®