From nobody Mon Dec 29 02:12:10 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 4dffqb0VFpz6LVhc for ; Mon, 29 Dec 2025 02:12:11 +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 4dffqZ6fn2z3hNk for ; Mon, 29 Dec 2025 02:12:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974331; 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=Ua4PJ106v3elkJ7cux9bhKsztkomvH1uHPGliIAzqBg=; b=khjV9G0jrFcjTgS6inKu39NvUDF5diw0H+NG/SrgIZ5zPIsxxG/VwSxKxtwnRlPbwRSgZu LBVQikaaxWqbWXYQbFIutDP5FN85CJPGm/MnRFoyhoxZMFMzCxspbbJfpVCSdiTrdwxovp Xcvs6hScayOmxUY6eVMlRALk4LzVsPqq3TJqocogplqQRxZur7rGFiLJeqt8gNWKzAiAgY 8NWqzEyyPvSDxYkvOTnH0UVXgJ6K0NRFEW3PponlHraA3jXZARGL1A9nj7rbkPJyKEvXsf mieSpTkPN+8k29zrZtSdEfrOexmIR/d8f9iHgW2UurXL2T+FyXCKbk+zfMhrhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974331; 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=Ua4PJ106v3elkJ7cux9bhKsztkomvH1uHPGliIAzqBg=; b=cVQWCifRDdhpUHYw+JDU/W0Vj8ifl0jnwL0UoL0hli+vqLqLTlENMDlxuBeCaCKTK1FDfp BTFl/biQjIA4axSwbczlaou39qQ5jvAVm+OD9bHiBeRncLc/tnoaSIvBP5P9j7bL/U56sp jtkfKvwKvGqDi8N6p++Fa23xpyyaxtVodVFiuX4jnSeR2vpNw75j1PgCAosvJ6BPTvtGbt avd9M1qRE46jrhQihJFJwdZZUXFm7kso0O/cDUMbsLMx4pFuH2Tvrecb/P5BxP2aVwWuxn YWXd4JU6j0Hy9UYG6YGVa7RRT4m2bcaaR/0SZM3Ki2XliccwNu5ATLHbCv3aAw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766974331; a=rsa-sha256; cv=none; b=Aa7gSXBXy4Zd0nexeXaU6K3u5SQcHNfSNdUcfoGo9yaXgEf/fe54+L7rYveL9qGTp4l3Xd OIeMScs4JXLqBD+ljeX044Z9Cg7TpUYai+Qu8ipLJJj8BJyxj3G1NL646unrZbio3jV3hk GiXydPIroY/m1IZf6xiHk7C6S4bZraaLXkhey4rUoxMUq+EsCUpwYKJzhhA5o465+fwJIJ 3NmvOiPG6TZ8y40/SqubDGgyQNQZqEu6ixUqUehFAN9CD647DPZUM1ZKyAzlORPOFEzz+6 2yW9XrUq4zarg1rPe7sGXQxdg68cFArCksEOUQCEPIWyt2q8nycMz2nTE9OMcA== 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 4dffqZ6Clmz19JR for ; Mon, 29 Dec 2025 02:12:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3ed94 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 02:12:10 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 8f7dfa4fe2b7 - stable/15 - 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/15 X-Git-Reftype: branch X-Git-Commit: 8f7dfa4fe2b79b3fdf096fa26dc7e2b743e1f208 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 02:12:10 +0000 Message-Id: <6951e37a.3ed94.2184f8af@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=8f7dfa4fe2b79b3fdf096fa26dc7e2b743e1f208 commit 8f7dfa4fe2b79b3fdf096fa26dc7e2b743e1f208 Author: Dimitry Andric AuthorDate: 2025-12-25 18:02:27 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 02:06:47 +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;