[PATCH 2/2] [RFC] x86: Remove clear_cpu_bug()

From: Richard Weinberger

Date: Mon Feb 16 2026 - 05:53:57 EST


F00F was the only user of clear_cpu_bug().
With no users left, remove this helper.

Signed-off-by: Richard Weinberger <richard@xxxxxx>
---
arch/x86/include/asm/cpufeature.h | 1 -
1 file changed, 1 deletion(-)

diff --git a/arch/x86/include/asm/cpufeature.h b/arch/x86/include/asm/cpufeature.h
index 3ddc1d33399b..90680f978d43 100644
--- a/arch/x86/include/asm/cpufeature.h
+++ b/arch/x86/include/asm/cpufeature.h
@@ -125,7 +125,6 @@ static __always_inline bool _static_cpu_has(u16 bit)

#define cpu_has_bug(c, bit) cpu_has(c, (bit))
#define set_cpu_bug(c, bit) set_cpu_cap(c, (bit))
-#define clear_cpu_bug(c, bit) clear_cpu_cap(c, (bit))

#define static_cpu_has_bug(bit) static_cpu_has((bit))
#define boot_cpu_has_bug(bit) cpu_has_bug(&boot_cpu_data, (bit))
--
2.51.0