public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] AutoFDO: Remove the architecture specific config
@ 2024-12-11 22:29 Rong Xu
  2024-12-11 22:29 ` [PATCH 2/2] Propeller: " Rong Xu
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Rong Xu @ 2024-12-11 22:29 UTC (permalink / raw)
  To: Masahiro Yamada, Yabin Cui, Will Deacon, Han Shen,
	Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen,
	H. Peter Anvin, Kees Cook, Andrew Morton, Sami Tolvanen,
	Alice Ryhl, Mike Rapoport (Microsoft), Samuel Holland,
	Paul E. McKenney, Rong Xu, Arnd Bergmann
  Cc: x86, linux-kernel

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@google.com>
Suggested-by: Will Deacon <will@kernel.org>
---
 arch/Kconfig     | 4 ----
 arch/x86/Kconfig | 1 -
 2 files changed, 5 deletions(-)

diff --git a/arch/Kconfig b/arch/Kconfig
index 6682b2a53e342..0b36d74d47031 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -812,12 +812,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 9d7bd0ae48c42..9363d9cc9a00a 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -128,7 +128,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_CMPXCHG64

base-commit: f92f4749861b06fed908d336b4dee1326003291b
-- 
2.47.0.338.g60cca15819-goog


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-02-04 20:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-11 22:29 [PATCH 1/2] AutoFDO: Remove the architecture specific config Rong Xu
2024-12-11 22:29 ` [PATCH 2/2] Propeller: " Rong Xu
2024-12-11 23:05   ` Nathan Chancellor
2024-12-12  7:48     ` Rong Xu
2025-01-31 22:36       ` Yabin Cui
2025-02-04 20:05   ` Kees Cook
2024-12-19 15:52 ` [PATCH 1/2] AutoFDO: " Will Deacon
2024-12-19 17:19   ` Rong Xu
2025-01-31 22:35     ` Yabin Cui
2025-02-04 20:04 ` Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox