Re: [PATCH 06/14] arch/Kconfig: Remove tautological condition from AUTOFDO_CLANG
From: Rong Xu
Date: Wed Apr 29 2026 - 12:43:47 EST
This looks good to me.
Reviewed-by: Rong Xu <xur@xxxxxxxxxx>
-Rong
On Tue, Apr 28, 2026 at 8:00 PM Nathan Chancellor <nathan@xxxxxxxxxx> wrote:
>
> Now that the minimum supported version of LLVM for building the kernel
> has been raised to 17.0.1, the clang version check in
> CONFIG_AUTOFDO_CLANG can be removed because it is always true.
>
> Signed-off-by: Nathan Chancellor <nathan@xxxxxxxxxx>
> ---
> Cc: Rong Xu <xur@xxxxxxxxxx>
> Cc: Han Shen <shenhan@xxxxxxxxxx>
> ---
> arch/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/Kconfig b/arch/Kconfig
> index 0d34bcafecaa..5d6e9f56210b 100644
> --- a/arch/Kconfig
> +++ b/arch/Kconfig
> @@ -866,7 +866,7 @@ config ARCH_SUPPORTS_AUTOFDO_CLANG
> config AUTOFDO_CLANG
> bool "Enable Clang's AutoFDO build (EXPERIMENTAL)"
> depends on ARCH_SUPPORTS_AUTOFDO_CLANG
> - depends on CC_IS_CLANG && CLANG_VERSION >= 170000
> + depends on CC_IS_CLANG
> help
> This option enables Clang’s AutoFDO build. When
> an AutoFDO profile is specified in variable
>
> --
> 2.54.0
>