[PATCH v3 1/2] kconfig: Remove the architecture specific config for AutoFDO
xur at google.com
xur at google.com
Wed May 27 14:45:07 PDT 2026
From: Rong Xu <xur at google.com>
The CONFIG_AUTOFDO_CLANG option currently depends on
ARCH_SUPPORTS_AUTOFDO_CLANG, but this dependency seems unnecessary.
Remove ARCH_SUPPORTS_AUTOFDO_CLANG and allow users to control AutoFDO
builds solely through CONFIG_AUTOFDO_CLANG. This simplifies the kconfig
and avoids potential confusion.
Signed-off-by: Rong Xu <xur at google.com>
Suggested-by: Will Deacon <will at kernel.org>
Tested-by: Yabin Cui <yabinc at google.com>
Reviewed-by: Kees Cook <kees at kernel.org>
---
arch/Kconfig | 4 ----
arch/x86/Kconfig | 1 -
2 files changed, 5 deletions(-)
diff --git a/arch/Kconfig b/arch/Kconfig
index e86880045158..e510c585ea84 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -863,12 +863,8 @@ config LTO_CLANG_THIN
If unsure, say Y.
endchoice
-config ARCH_SUPPORTS_AUTOFDO_CLANG
- bool
-
config AUTOFDO_CLANG
bool "Enable Clang's AutoFDO build (EXPERIMENTAL)"
- depends on ARCH_SUPPORTS_AUTOFDO_CLANG
depends on CC_IS_CLANG && CLANG_VERSION >= 170000
help
This option enables Clang’s AutoFDO build. When
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index f3f7cb01d69d..10bf3984102e 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -130,7 +130,6 @@ config X86
select ARCH_SUPPORTS_LTO_CLANG
select ARCH_SUPPORTS_LTO_CLANG_THIN
select ARCH_SUPPORTS_RT
- select ARCH_SUPPORTS_AUTOFDO_CLANG
select ARCH_SUPPORTS_PROPELLER_CLANG if X86_64
select ARCH_USE_BUILTIN_BSWAP
select ARCH_USE_CMPXCHG_LOCKREF if X86_CX8
--
2.54.0.794.g4f17f83d09-goog
More information about the linux-arm-kernel
mailing list