summaryrefslogtreecommitdiff
path: root/include/linux/raspberrypi
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2025-12-19 16:39:58 +0100
committerPeter Zijlstra <peterz@infradead.org>2026-01-05 16:43:29 +0100
commit38f1311a2219220a3962fae464ca6300ef60b4c1 (patch)
treea99570831ebeea71c0227f8d50c05e85b047d37c /include/linux/raspberrypi
parentf16a802d402d735a55731f8c94952b3bbb5ddfe8 (diff)
compiler-context-analysis: Change __cond_acquires to take return value
While Sparse is oblivious to the return value of conditional acquire functions, Clang's context analysis needs to know the return value which indicates successful acquisition. Add the additional argument, and convert existing uses. Notably, Clang's interpretation of the value merely relates to the use in a later conditional branch, i.e. 1 ==> context lock acquired in branch taken if condition non-zero, and 0 ==> context lock acquired in branch taken if condition is zero. Given the precise value does not matter, introduce symbolic variants to use instead of either 0 or 1, which should be more intuitive. No functional change intended. Signed-off-by: Marco Elver <elver@google.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://patch.msgid.link/20251219154418.3592607-10-elver@google.com
Diffstat (limited to 'include/linux/raspberrypi')
0 files changed, 0 insertions, 0 deletions