Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'locking-urgent-2026-03-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull locking fix from Ingo Molnar:
"Now that LLVM 22 has been released officially, require a release
version to use the new CONFIG_WARN_CONTEXT_ANALYSIS feature.

In particular this avoids the widely used Android clang 22.0.1
pre-release build which is known to be broken for this usecase"

* tag 'locking-urgent-2026-03-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
lib/Kconfig.debug: Require a release version of LLVM 22 for context analysis

+2 -2
+2 -2
lib/Kconfig.debug
··· 630 630 631 631 config WARN_CONTEXT_ANALYSIS 632 632 bool "Compiler context-analysis warnings" 633 - depends on CC_IS_CLANG && CLANG_VERSION >= 220000 633 + depends on CC_IS_CLANG && CLANG_VERSION >= 220100 634 634 # Branch profiling re-defines "if", which messes with the compiler's 635 635 # ability to analyze __cond_acquires(..), resulting in false positives. 636 636 depends on !TRACE_BRANCH_PROFILING ··· 641 641 and releasing user-definable "context locks". 642 642 643 643 Clang's name of the feature is "Thread Safety Analysis". Requires 644 - Clang 22 or later. 644 + Clang 22.1.0 or later. 645 645 646 646 Produces warnings by default. Select CONFIG_WERROR if you wish to 647 647 turn these warnings into errors.