Re: [PATCH v2 05/16] arch/Kconfig: Remove tautological conditions from HAS_LTO_CLANG

From: Arnd Bergmann

Date: Mon May 18 2026 - 04:01:42 EST


On Mon, May 18, 2026, at 01:05, Nathan Chancellor wrote:
> Now that the minimum supported version of LLVM for building the kernel
> has been raised to 17.0.1, two dependency lines in CONFIG_HAS_LTO_CLANG
> are always true because Clang will always be newer than 17.0.0, so they
> can be removed.
>
> Reviewed-by: Nicolas Schier <nsc@xxxxxxxxxx>
> Signed-off-by: Nathan Chancellor <nathan@xxxxxxxxxx>

Acked-by: Arnd Bergmann <arnd@xxxxxxxx>

Semi-related to this: we discussed a few years ago that we may one
day no longer need both full-lto and thin-lto.

Is there still a need to keep supporting full-lto with clang-17+,
or can we expect everyone to use the thin version thee days?

Arnd