From nobody Mon Dec 29 02:13:09 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dffrj74YCz6LWGG for ; Mon, 29 Dec 2025 02:13:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dffrj4c55z3l9y for ; Mon, 29 Dec 2025 02:13:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974389; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6rdjEyNTRQ2sqZXN5FjWF6v9zxsSpnKE8Pxl6Ro4T5M=; b=BYWC2xj8XlAgCahaBEE3bmF4R84+XxRPJFYbFwNRbPu63uFHbVCULmIEOUQHvJ11ohgQVi Hu1ZtpGDscNNUTcGxIp0uHOXLgHuSbGzlf6Flzp2aQ5C5mxGDTXsUBdWSkSvJxVvS9189h 7H2KolKgaA6+6t/OGDna2Xbqzccyo8qaB/mSp+l4iFfpJLZeKqpJ40KD9Xwb86eJMxRlsD WdzM/vp0vcNfj4sek8Z7XqLY9x9O6vIR1dmabEGSnExIEOIEpgVzHUdMgXKGBsAthEo7Rb iyvVIvuVFQHWqejAyU5rhUG3iCKU1Qken230FI5h6iDNtV/y//q3KQidZGijJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974389; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6rdjEyNTRQ2sqZXN5FjWF6v9zxsSpnKE8Pxl6Ro4T5M=; b=hYckGTXp770cDKsRTVVOZpVtlOh0yF04YTdeK0JYG7ecfiJmPwFP989HeRITHcmRghfZ0z DEQfurUht/+76niEX9Uecv8ukIcN32CZpbAhHYggGxPXrXJwSN2RbL7K300cLNpGGZJlMB RlAoc8XnUSWt0RsoYAGqWwOwgLfKwJ0H4MXZDjQtCPdW9aBjhCVGvlHREVsjTfeObGMbxu hJkDrAZyZ2cNo5kND5vZ9M630LnAipSdgdwwhhKyqH8KfNVDzuPwfOy7Cn/m2FSuczrHfh cjbS+jqvzA99I7tf51UrTbl64bdBvpGXGJum8b/yrbFrzZCa3gVuItUD7Wt16A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766974389; a=rsa-sha256; cv=none; b=iBJqYQBsa2u1lgUHl2dZxF0gz7H1XzbbrWzGBBDetguoM5PqeiMAR+sff+3Caar1xz2Ui8 TiFZYSXcc4a+inEBWvYpjDePOePGWwTf1E9TtC3ZLj5zCsdZ8zOV/q1nPzbsCU7aiumkYo y65K+igVmMPM/HRu+bKBmS0mgwH5BKkGtInqfMZTJu1DqCHkm1UcXT2YBFN8HlG/y2tKvB jkvEuVgYdcqMVEuT+WbT1iHagbkQ5Oa1cInniqArroduwSwa5yHqjqO7QUlzkBRmFRx4+0 AW/yA0mJGFoYECWJhcJYQu/sN6j1NZ3t1/G4/nNr/O2ZNThFRdQmKaMoSfAf9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dffrj4CRHz19RK for ; Mon, 29 Dec 2025 02:13:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3f334 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 02:13:09 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 1f5a55504f09 - stable/13 - cuse(3): annotate cuse_init() to suppress thread safety analysis List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 1f5a55504f09ff4b236dc3d414d30e42b7826336 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 02:13:09 +0000 Message-Id: <6951e3b5.3f334.7bfd974a@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=1f5a55504f09ff4b236dc3d414d30e42b7826336 commit 1f5a55504f09ff4b236dc3d414d30e42b7826336 Author: Dimitry Andric AuthorDate: 2025-12-25 18:02:27 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 02:07:14 +0000 cuse(3): annotate cuse_init() to suppress thread safety analysis This avoids warnings from clang 21, similar to: /usr/src/lib/libcuse/cuse_lib.c:111:14: error: writing variable 'h_cuse' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis] 111 | TAILQ_INIT(&h_cuse); | ^ /usr/src/lib/libcuse/cuse_lib.c:111:14: error: writing variable 'h_cuse' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis] /usr/src/lib/libcuse/cuse_lib.c:112:14: error: writing variable 'h_cuse_entered' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis] 112 | TAILQ_INIT(&h_cuse_entered); | ^ /usr/src/lib/libcuse/cuse_lib.c:112:14: error: writing variable 'h_cuse_entered' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis] MFC after: 3 days (cherry picked from commit 5629b5cf79934e0b94ddbbd93b7756f74fe4050a) --- lib/libcuse/cuse_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libcuse/cuse_lib.c b/lib/libcuse/cuse_lib.c index 3f040d0eeeda..48c72258106d 100644 --- a/lib/libcuse/cuse_lib.c +++ b/lib/libcuse/cuse_lib.c @@ -93,7 +93,7 @@ static struct cuse_vm_allocation a_cuse[CUSE_ALLOC_UNIT_MAX] pthread_mutex_unlock(&m_cuse) int -cuse_init(void) +cuse_init(void) __no_lock_analysis { pthread_mutexattr_t attr;