]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
compiler_types: Move lock checking attributes to compiler-context-analysis.h
authorMarco Elver <elver@google.com>
Fri, 19 Dec 2025 15:39:50 +0000 (16:39 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 5 Jan 2026 15:43:26 +0000 (16:43 +0100)
commitde15fecae44df8254fa597bad7eb3680a8b1c10c
tree3c969a41f299633660880d3d4e0a2c2829233dac
parentde2c5a1523fde38411b6259064258a0c0a3c896a
compiler_types: Move lock checking attributes to compiler-context-analysis.h

The conditional definition of lock checking macros and attributes is
about to become more complex. Factor them out into their own header for
better readability, and to make it obvious which features are supported
by which mode (currently only Sparse). This is the first step towards
generalizing towards "context analysis".

No functional change intended.

Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20251219154418.3592607-2-elver@google.com
include/linux/compiler-context-analysis.h [new file with mode: 0644]
include/linux/compiler_types.h