]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arch/Kconfig: Remove tautological conditions from HAS_LTO_CLANG
authorNathan Chancellor <nathan@kernel.org>
Sun, 17 May 2026 23:05:08 +0000 (13:05 -1000)
committerNathan Chancellor <nathan@kernel.org>
Wed, 27 May 2026 22:20:04 +0000 (15:20 -0700)
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@kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20260517-bump-minimum-supported-llvm-version-to-17-v2-5-b3b8cda46bdd@kernel.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
arch/Kconfig

index e86880045158e4b3439645590e3c8f56f2a5d435..0d34bcafecaac2fe1ed5784a2f13ece5ec49a0c3 100644 (file)
@@ -806,9 +806,6 @@ config HAS_LTO_CLANG
        depends on $(success,$(AR) --help | head -n 1 | grep -qi llvm)
        depends on ARCH_SUPPORTS_LTO_CLANG
        depends on !FTRACE_MCOUNT_USE_RECORDMCOUNT
-       # https://github.com/ClangBuiltLinux/linux/issues/1721
-       depends on (!KASAN || KASAN_HW_TAGS || CLANG_VERSION >= 170000) || !DEBUG_INFO
-       depends on (!KCOV || CLANG_VERSION >= 170000) || !DEBUG_INFO
        depends on !GCOV_KERNEL
        help
          The compiler and Kconfig options support building with Clang's