Skip to content

Commit f709859

Browse files
nathanchancekees
authored andcommitted
init/Kconfig: Adjust fixed clang version for __builtin_counted_by_ref
Commit d39a1d7 ("compiler_types: Disable __builtin_counted_by_ref for Clang") used 22.0.0 as the fixed version for a compiler crash but the fix was only merged in main (23.0.0) and release/22.x (22.1.0). With the current fixed version number, prerelease or Android LLVM 22 builds will still be able to hit the compiler crash when building the kernel. This can be particularly disruptive when bisecting LLVM. Use 21.1.0 as the fixed version number to ensure the fix for this crash is always present. Fixes: d39a1d7 ("compiler_types: Disable __builtin_counted_by_ref for Clang") Signed-off-by: Nathan Chancellor <nathan@kernel.org> Link: https://patch.msgid.link/20260223-fix-clang-version-builtin-counted-by-ref-v1-1-3ea478a24f0a@kernel.org Signed-off-by: Kees Cook <kees@kernel.org>
1 parent 96a7b71 commit f709859

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

init/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ config CC_HAS_COUNTED_BY_PTR
153153
config CC_HAS_BROKEN_COUNTED_BY_REF
154154
bool
155155
# https://github.com/llvm/llvm-project/issues/182575
156-
default y if CC_IS_CLANG && CLANG_VERSION < 220000
156+
default y if CC_IS_CLANG && CLANG_VERSION < 220100
157157

158158
config CC_HAS_MULTIDIMENSIONAL_NONSTRING
159159
def_bool $(success,echo 'char tag[][4] __attribute__((__nonstring__)) = { };' | $(CC) $(CLANG_FLAGS) -x c - -c -o /dev/null -Werror)

0 commit comments

Comments
 (0)