From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DED1A366561; Thu, 7 May 2026 08:44:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778143442; cv=none; b=bVWYJOMxYdnooXJ3jz9UKd4s1pVQC3NLWoJYfP/Bybz0odap5tAlFm2cVMYQeDWzYFbfdGU241q4ez15HvQ/h3pDU7cDjJV4DK5W6qvUm0SE7jyBevAx8yKJfoXTmLkHubYmGDC4cyR7v4JlCPwUodTUa95fwTPa0p1Nxf9qyYE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778143442; c=relaxed/simple; bh=E8/w0Hh9BarpFVRbEpenbgHqrWiFUb7mAfwZDoH25Ys=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=plco4lRRplYfzLi+TKW4gOfZEja3wGJClgUX4/pD0KDbAtok+xoL+CzQbIg21bPI4KWRnSdc1/NXQ5mKRKVCWz/S+5AkWzETpYGqZV185BoiEG9bpGCCuuGQOM+YRqMabj4qPNM/NU797xbN7zzLHmhikam42XwH5mnZyMVsNcQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TcUtQiGy; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TcUtQiGy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EECCCC2BCB2; Thu, 7 May 2026 08:43:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778143441; bh=E8/w0Hh9BarpFVRbEpenbgHqrWiFUb7mAfwZDoH25Ys=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TcUtQiGy+ak+Y1JVp8buc5s++sRoQg1azgEIrqzraLEBeLsndKuBH1Bj4XPxeeGB3 pccz/YgRelhI5bG1PH7GLlkR5a4Iofr0Gg3b+OdnkhKFnqoCvlzhH3Pf7TK2mbiV/+ tnBOw3Ef4mIc5N1/fXEiSBLMvBqNx+cgV8ldFBdq4ID+ItuwRLkVr+J/uYPjZ14VU4 d/rpyd62DeRp4X5JEt4qM09eYfcUB3DZ20kkB9ty2RbZ+Fdkw+o0bzGdYvnjBHmVLQ MpZNTjXaLoQpVU0Jy+ZeEYu17/uVmbI4Q88LfoEENI16Croh3aavt05T/ZufpS2xo4 kP7iLdWMJPP4Q== Date: Thu, 7 May 2026 16:43:57 +0800 From: Nathan Chancellor To: Peter Zijlstra , Bart Van Assche Cc: linux-tip-commits@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [tip: locking/core] locking/rtmutex: Annotate API and implementation Message-ID: <20260507084357.GA961911@ax162> References: <20260505022649.870788-1-bvanassche@acm.org> <177797853432.424702.11529123964407349507.tip-bot2@tip-bot2> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <177797853432.424702.11529123964407349507.tip-bot2@tip-bot2> On Tue, May 05, 2026 at 10:55:34AM -0000, tip-bot2 for Bart Van Assche wrote: > The following commit has been merged into the locking/core branch of tip: > > Commit-ID: d30a456aa7ce1bab05d9b364eeacad0c9cb10cc2 > Gitweb: https://git.kernel.org/tip/d30a456aa7ce1bab05d9b364eeacad0c9cb10cc2 > Author: Bart Van Assche > AuthorDate: Tue, 05 May 2026 04:26:44 +02:00 > Committer: Peter Zijlstra > CommitterDate: Tue, 05 May 2026 12:50:49 +02:00 > > locking/rtmutex: Annotate API and implementation > > Add lock context annotations to the rtmutex API and implementation and > enable lock context analysis. > > Signed-off-by: Bart Van Assche > Signed-off-by: Peter Zijlstra (Intel) > Link: https://patch.msgid.link/20260505022649.870788-1-bvanassche@acm.org This breaks the build for me. $ make -skj"$(nproc)" ARCH=x86_64 LLVM=1 mrproper defconfig kernel/locking/rtmutex_api.o kernel/locking/rtmutex_api.c:93:1: error: expecting rt_mutex 'lock' to be held at the end of function [-Werror,-Wthread-safety-analysis] 93 | } | ^ kernel/locking/rtmutex_api.c:90:14: note: rt_mutex acquired here 90 | void __sched rt_mutex_lock(struct rt_mutex *lock) | ^ 1 error generated. This is with LLVM 22.1.5, in case it matters. Cheers, Nathan