From nobody Sat Mar 05 19:56:53 2022 X-Original-To: dev-commits-src-branches@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 DBF5819FF475; Sat, 5 Mar 2022 19:56:53 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K9wTx5481z3t6Y; Sat, 5 Mar 2022 19:56:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646510213; 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=97T67x+bS9MlSRXrPG9cGQg/TWZR+WXZaxvNrok4uQk=; b=Dp70ki7dR0X41ulY7Wk0qTl/7eKAEQsXC2bc+Ci2Uop8Z6eOReb+douS1qq+PPxxJFTIEW jvHfsDmKbRTvDPACaINFWLvsQWis9givPcmI/JJa554IU+keNzbrzi0CzLESTs8HAoWIOO JK9ehgbypuyuDKVsrkaZfIovcV6cAuoMKVBsUbMOvoQifvhtlNQwrbXnI8YOA7U7ilLhJ5 YAKLl73y74xcwsS+r2Et3D4IthkXfnIBccyqlSWEJoaUK//p/1dD4Q3zU3lvcFNRmDOB/C CKmaxa9FfjqjdjXX7CH3tE7cRop2q79nMfb6EhDVLdLhawpPO11AkBPr0WLECA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7DFCC26996; Sat, 5 Mar 2022 19:56:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 225Jurx1018187; Sat, 5 Mar 2022 19:56:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 225Jurdk018186; Sat, 5 Mar 2022 19:56:53 GMT (envelope-from git) Date: Sat, 5 Mar 2022 19:56:53 GMT Message-Id: <202203051956.225Jurdk018186@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Guzik Subject: git: df7ebff33c65 - stable/13 - cache: whack "set but not used" warnings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: df7ebff33c654a82d8efbce52d7d66e93fd773e7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646510213; 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=97T67x+bS9MlSRXrPG9cGQg/TWZR+WXZaxvNrok4uQk=; b=nAy9AAjeC8MGNT7QxaennPlRALi+bTLfS8N2hTkhoV5Fzn7ftIzQM476cpyhJgDWW5VDoU ic5WmsW+rycP8RwN8y8qJvb1lD6XXBy+UOA3n72GpxXgAajYV6KiCxA69bA5UfUB2JUFrP wn6biqS6kmb7Bj5OsUSDYVUAnr4hMBnyHyszXEpGvWMzW1LlcSFGNjjdQQ91vymbkr4bfk 6eYM54EkHizAOz4Tg/abc0HK3geehbK5s14sKmIIVvNy7r8P0UaUhahs3ecorrBIIVbyoM xknIQMZDhkG7GRw5NKWqZiAbWNChXGoRpHY5ElhTggRyHWCXtwGobpjyh69vSA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646510213; a=rsa-sha256; cv=none; b=NS2GrPNIj0klfvUAXL1IFbEx5sNXGbfr359w4SZhmWBdQLy9pirAl8waWUhKDW12IRrKX5 ljMgHbSXtjRplWq8cJKVWNFx0uORNw76PRNZZKnHoyKqsc8ADAteSVyk5IAaUNR+4dPcAL ZDbHGYTx0zor5uF7UzETi9dk3T90zu/C5ocB410xg1hailAzFBP0n3s6hchL2fVkVaaB9u siZ6XwR8qXzPUBt/Xb9NddMbFUhv2WNsz2EgfX7KyqxMPQ40PuMVPHkqa5PfHK7O//zIXM dPguCBOEQ7j7goHUDYJonhPfohymM3ScLl9dyajNROLhQ9OIhPvFdenjWDRSZw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=df7ebff33c654a82d8efbce52d7d66e93fd773e7 commit df7ebff33c654a82d8efbce52d7d66e93fd773e7 Author: Mateusz Guzik AuthorDate: 2021-11-14 16:57:11 +0000 Commit: Mateusz Guzik CommitDate: 2022-03-05 19:53:20 +0000 cache: whack "set but not used" warnings (cherry picked from commit 7e9680d3be484baac7fe78cef2be4e7ce4b4946f) --- sys/kern/vfs_cache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index bc85c96c045f..ef4e33308472 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -4781,7 +4781,6 @@ cache_fplookup_emptypath(struct cache_fpl *fpl) struct componentname *cnp; enum vgetstate tvs; struct vnode *tvp; - seqc_t tvp_seqc; int error, lkflags; fpl->tvp = fpl->dvp; @@ -4790,7 +4789,6 @@ cache_fplookup_emptypath(struct cache_fpl *fpl) ndp = fpl->ndp; cnp = fpl->cnp; tvp = fpl->tvp; - tvp_seqc = fpl->tvp_seqc; MPASS(*cnp->cn_pnbuf == '\0'); @@ -5085,11 +5083,13 @@ cache_fplookup_dotdot(struct cache_fpl *fpl) static int __noinline cache_fplookup_neg(struct cache_fpl *fpl, struct namecache *ncp, uint32_t hash) { - u_char nc_flag; + u_char nc_flag __diagused; bool neg_promote; +#ifdef INVARIANTS nc_flag = atomic_load_char(&ncp->nc_flag); MPASS((nc_flag & NCF_NEGATIVE) != 0); +#endif /* * If they want to create an entry we need to replace this one. */