summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2025-12-19 16:40:25 +0100
committerPeter Zijlstra <peterz@infradead.org>2026-01-05 16:43:36 +0100
commit04e49d926f438134b6453505aa206e70f8cf4cb1 (patch)
tree0f875ddf5702251faf8ed900f62113a96d4f0595 /scripts
parentdc36d55d4e7259ff0f91a154744125ccc2228171 (diff)
sched: Enable context analysis for core.c and fair.c
This demonstrates a larger conversion to use Clang's context analysis. The benefit is additional static checking of locking rules, along with better documentation. Notably, kernel/sched contains sufficiently complex synchronization patterns, and application to core.c & fair.c demonstrates that the latest Clang version has become powerful enough to start applying this to more complex subsystems (with some modest annotations and changes). Signed-off-by: Marco Elver <elver@google.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://patch.msgid.link/20251219154418.3592607-37-elver@google.com
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context-analysis-suppression.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/context-analysis-suppression.txt b/scripts/context-analysis-suppression.txt
index df25c3d07a5b..fd8951d06706 100644
--- a/scripts/context-analysis-suppression.txt
+++ b/scripts/context-analysis-suppression.txt
@@ -26,6 +26,7 @@ src:*include/linux/refcount.h=emit
src:*include/linux/rhashtable.h=emit
src:*include/linux/rwlock*.h=emit
src:*include/linux/rwsem.h=emit
+src:*include/linux/sched*=emit
src:*include/linux/seqlock*.h=emit
src:*include/linux/spinlock*.h=emit
src:*include/linux/srcu*.h=emit