]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
compiler-context-analysis: Remove Sparse support
authorMarco Elver <elver@google.com>
Fri, 19 Dec 2025 15:40:12 +0000 (16:40 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 5 Jan 2026 15:43:33 +0000 (16:43 +0100)
commit5b63d0ae94ccfd64dcbdb693d88eb3650eb3c64c
tree884fc22791182b23e40060eebfd2eac59e07b67c
parent4f109baeea4dc6fa1426ab559159d3bb35e05343
compiler-context-analysis: Remove Sparse support

Remove Sparse support as discussed at [1].

The kernel codebase is still scattered with numerous places that try to
appease Sparse's context tracking ("annotation for sparse", "fake out
sparse", "work around sparse", etc.). Eventually, as more subsystems
enable Clang's context analysis, these places will show up and need
adjustment or removal of the workarounds altogether.

Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/all/20250207083335.GW7145@noisy.programming.kicks-ass.net/
Link: https://lore.kernel.org/all/Z6XTKTo_LMj9KmbY@elver.google.com/
Link: https://patch.msgid.link/20251219154418.3592607-24-elver@google.com
Documentation/dev-tools/sparse.rst
include/linux/compiler-context-analysis.h
include/linux/rcupdate.h