]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ww-mutex: Fix the ww_acquire_ctx function annotations
authorBart Van Assche <bvanassche@acm.org>
Wed, 25 Feb 2026 18:32:43 +0000 (10:32 -0800)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 27 Feb 2026 15:40:20 +0000 (16:40 +0100)
commit3dcef70e41ab13483803c536ddea8d5f1803ee25
tree85b789ac6315278a3569b4c2261454c2d02ce4a1
parent39be7b21af24d1d2ed3b18caac57dd219fef226e
ww-mutex: Fix the ww_acquire_ctx function annotations

The ww_acquire_done() call is optional. Reflect this in the annotations of
ww_acquire_done().

Fixes: 47907461e4f6 ("locking/ww_mutex: Support Clang's context analysis")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Acked-by: Marco Elver <elver@google.com>
Link: https://patch.msgid.link/20260225183244.4035378-4-bvanassche@acm.org
include/linux/ww_mutex.h