x86/cpu: drop unused Kconfig symbol X86_P6_NOP
PATCH v2 1/1 x86/cpu: drop unused Kconfig symbol X86_P6_NOP
This symbol was removed in early 2025 but 2 dangling references to it were missed. Delete them now.
It's safe to drop the -mtune=generic32 option since gcc 4.3 doesn't cause the problem (see 28f7e66fc1da ("x86: prevent binutils from being "smart" and generating NOPLs for us")). Also, Arnd confirmed this with gcc-8 and gcc-15.
---
v2: add Reviewed-by Nikolay; add -mtune explanation (Dave, Arnd: thanks);
add Cc to HPA;
arch/x86/Kconfig.cpufeatures | 2 +- arch/x86/Makefile_32.cpu | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-)
arch/x86/Kconfig.cpufeatures +1 -1
@@ -38,7 +38,7 @@ config X86_REQUIRED_FEATURE_ALWAYS config X86_REQUIRED_FEATURE_NOPL def_bool y - depends on X86_64 || X86_P6_NOP + depends on X86_64 config X86_REQUIRED_FEATURE_CX8 def_bool y
arch/x86/Makefile_32.cpu +0 -6
@@ -42,9 +42,3 @@ cflags-$(CONFIG_MGEODE_LX) += $(call cc- # add at the end to overwrite eventual tuning options from earlier # cpu entries cflags-$(CONFIG_X86_GENERIC) += $(call tune,generic,$(call tune,i686)) - -# Bug fix for binutils: this option is required in order to keep -# binutils from generating NOPL instructions against our will. -ifneq ($(CONFIG_X86_P6_NOP),y) -cflags-y += $(call cc-option,-Wa$(comma)-mtune=generic32,) -endif
[tip: x86/cpu] x86/cpu: Drop unused Kconfig symbol X86_P6_NOP
The following commit has been merged into the x86/cpu branch of tip:
The following commit has been merged into the x86/cpu branch of tip:
Commit-ID: 18fe1f58623f8c1fddd21a3d044d668ba9d8b0a9 Gitweb: https://git.kernel.org/tip/18fe1f58623f8c1fddd21a3d044d668ba9d8b0a9 Author: Randy Dunlap <[email protected]> AuthorDate: Mon, 05 Jan 2026 17:47:08 -08:00 Committer: Dave Hansen <[email protected]> CommitterDate: Tue, 06 Jan 2026 08:57:23 -08:00
x86/cpu: Drop unused Kconfig symbol X86_P6_NOP
This symbol was removed in early 2025 but 2 dangling references to it were missed. Delete them now.
It should be safe to drop the -mtune=generic32 option since gcc 4.3 and later do not cause the problem (see 28f7e66fc1da ("x86: prevent binutils from being "smart" and generating NOPLs for us")). Also, Arnd confirmed this with gcc-8 and gcc-15 (see Link:).
--- arch/x86/Kconfig.cpufeatures | 2 +- arch/x86/Makefile_32.cpu | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-)
arch/x86/Kconfig.cpufeatures +1 -1
@@ -38,7 +38,7 @@ config X86_REQUIRED_FEATURE_ALWAYS config X86_REQUIRED_FEATURE_NOPL def_bool y - depends on X86_64 || X86_P6_NOP + depends on X86_64 config X86_REQUIRED_FEATURE_CX8 def_bool y
arch/x86/Makefile_32.cpu +0 -6
@@ -42,9 +42,3 @@ cflags-$(CONFIG_MGEODE_LX) += $(call cc-option,-march=geode,-march=pentium-mmx) # add at the end to overwrite eventual tuning options from earlier # cpu entries cflags-$(CONFIG_X86_GENERIC) += $(call tune,generic,$(call tune,i686)) - -# Bug fix for binutils: this option is required in order to keep -# binutils from generating NOPL instructions against our will. -ifneq ($(CONFIG_X86_P6_NOP),y) -cflags-y += $(call cc-option,-Wa$(comma)-mtune=generic32,) -endif
Quoted 15 lines · Randy Dunlap
This symbol was removed in early 2025 but 2 dangling references to it were missed. Delete them now.
It's safe to drop the -mtune=generic32 option since gcc 4.3 doesn't cause the problem (see
28f7e66fc1da("x86: prevent binutils from being "smart" and generating NOPLs for us")). Also, Arnd confirmed this with gcc-8 and gcc-15.Fixes f388f60ca904 ("x86/cpu: Drop configuration options for early 64-bit CPUs")Signed-off-by Randy Dunlap <[email protected]>Reviewed-by Nikolay Borisov <[email protected]>---
v2: add Reviewed-by Nikolay; add -mtune explanation (Dave, Arnd: thanks);add Cc to HPA;
Quoted 8 lines
Cc Arnd Bergmann <[email protected]>Cc Ingo Molnar <[email protected]>Cc Thomas Gleixner <[email protected]>Cc Borislav Petkov <[email protected]>Cc Dave Hansen <[email protected]>Cc "H. Peter Anvin" <[email protected]>
-hpa