summaryrefslogtreecommitdiff
path: root/include/linux/compiler-context-analysis.h
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2025-12-19 16:40:10 +0100
committerPeter Zijlstra <peterz@infradead.org>2026-01-05 16:43:32 +0100
commit6e530e2e31191d88f692e6c8d3bd245e43416e4f (patch)
treecd62397ba73967d3060e22a691d00081c0689789 /include/linux/compiler-context-analysis.h
parent47907461e4f6fcdce8cf91dd164369192deeb7c4 (diff)
debugfs: Make debugfs_cancellation a context lock struct
When compiling include/linux/debugfs.h with CONTEXT_ANALYSIS enabled, we can see this error: ./include/linux/debugfs.h:239:17: error: use of undeclared identifier 'cancellation' 239 | void __acquires(cancellation) Move the __acquires(..) attribute after the declaration, so that the compiler can see the cancellation function argument, as well as making struct debugfs_cancellation a real context lock to benefit from Clang's context analysis. This change is a preparatory change to allow enabling context analysis in subsystems that include the above header. 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-22-elver@google.com
Diffstat (limited to 'include/linux/compiler-context-analysis.h')
0 files changed, 0 insertions, 0 deletions