From nobody Thu Apr 16 10:43:25 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D70BD423A7A; Sat, 28 Feb 2026 10:56:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772276197; cv=none; b=JkdCjbMy748wuLOAo2ftiKeISi+LujEK+De1b6T4Tj82E/bPiEmUNHgcfH8QRQX0y/xnYKiibvh6JTYYhMpOaSEwj/PEIHWEhAN+K45mzZ80/UEW6ApKyeBSUUcBZzg6OPiswBx6YW1MY8E+1CdYm/2QcWVSD9fATwUugVoKSKw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772276197; c=relaxed/simple; bh=ygMNiJZuRmAHn3JufW+SoUmNtYElCUtyhsYOuCEVAwE=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Sy2SzLP8rML14alKFssl1LGJoCzM+FMTDCbaF/Zwx3am2caByYbVPu4E7r4wJGyki5I9agYITjTvamRuMXfM+ygc036ZYpdXG3mzRmJ1ipCgC5FdJHcbFArLig/fA4CNW8o2GCtl+z4a0/437Z2UVle2lYKMSimdoHePvhdu9IQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=mtoKHHXf; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=0egrlmpi; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="mtoKHHXf"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="0egrlmpi" Date: Sat, 28 Feb 2026 10:56:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772276188; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/QUl6XLj0yTt5KlJt5IqxA+6Yd2T7Z4qIIfZBx2bqdM=; b=mtoKHHXf3+g48Y5NlpH1xTmTbSzFVXCuysWxZznJiWZhyZfXGLg8FI1oYuU3S9S2ZknaDf uN9JdyhgkDagdiupOHGtOQJirwsMEQ9K3lBEZEsCGqqWlpkxnigZ2hILMohqh7e+Sdh5nU lSLnbcpTcvz0/ObvMoQMA3QuMpH6IQsMyX3yLrxsbGKyxxGPC3mugUH+aPrvN3n1uwzx9E TprJmoEzC/cSteWUB/yFjO/qgDAjHrVydPVNtU8YYDkQFgyJSCzKGSfj/wIC0JR6fxuYem 1UU5q2EnysMENKvvGWADooAFHisFTUSqtziLs7kNvnJTYl3ysd+tXLsbpKA6RA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772276188; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/QUl6XLj0yTt5KlJt5IqxA+6Yd2T7Z4qIIfZBx2bqdM=; b=0egrlmpiXhtBW33++smgnR1N0Ea2WVoogiWbud2YyeriPb91WElMyYsZe7SRxf+7eP90mx L0RwqpipzsVIOyCA== From: "tip-bot2 for Bart Van Assche" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/core] ww-mutex: Fix the ww_acquire_ctx function annotations Cc: Bart Van Assche , "Peter Zijlstra (Intel)" , Maarten Lankhorst , Marco Elver , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260225183244.4035378-4-bvanassche@acm.org> References: <20260225183244.4035378-4-bvanassche@acm.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177227618699.1647592.15529820261216474369.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the locking/core branch of tip: Commit-ID: 3dcef70e41ab13483803c536ddea8d5f1803ee25 Gitweb: https://git.kernel.org/tip/3dcef70e41ab13483803c536ddea8d5f1= 803ee25 Author: Bart Van Assche AuthorDate: Wed, 25 Feb 2026 10:32:43 -08:00 Committer: Peter Zijlstra CommitterDate: Fri, 27 Feb 2026 16:40:20 +01:00 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 Signed-off-by: Peter Zijlstra (Intel) Acked-by: Maarten Lankhorst Acked-by: Marco Elver Link: https://patch.msgid.link/20260225183244.4035378-4-bvanassche@acm.org --- include/linux/ww_mutex.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/ww_mutex.h b/include/linux/ww_mutex.h index 85b1fff..0c95ead 100644 --- a/include/linux/ww_mutex.h +++ b/include/linux/ww_mutex.h @@ -181,7 +181,7 @@ static inline void ww_acquire_init(struct ww_acquire_ct= x *ctx, * data structures. */ static inline void ww_acquire_done(struct ww_acquire_ctx *ctx) - __releases(ctx) __acquires_shared(ctx) __no_context_analysis + __must_hold(ctx) { #ifdef DEBUG_WW_MUTEXES lockdep_assert_held(ctx); @@ -199,7 +199,7 @@ static inline void ww_acquire_done(struct ww_acquire_ct= x *ctx) * mutexes have been released with ww_mutex_unlock. */ static inline void ww_acquire_fini(struct ww_acquire_ctx *ctx) - __releases_shared(ctx) __no_context_analysis + __releases(ctx) __no_context_analysis { #ifdef CONFIG_DEBUG_LOCK_ALLOC mutex_release(&ctx->first_lock_dep_map, _THIS_IP_);