Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Feb 2023 13:50:35 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: dbcd7e7e329c - main - vfs cache: whack set-but-not-used warn in cache_purgevfs
Message-ID:  <202302211350.31LDoZuJ002017@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=dbcd7e7e329cd555e12434b2fa9e48f3dfeadf05

commit dbcd7e7e329cd555e12434b2fa9e48f3dfeadf05
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2023-02-21 13:48:35 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2023-02-21 13:48:35 +0000

    vfs cache: whack set-but-not-used warn in cache_purgevfs
    
    Reported by:    kib
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/kern/vfs_cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 47065cf85bb5..3ae2b663fffb 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -3016,7 +3016,7 @@ void
 cache_purgevfs(struct mount *mp)
 {
 	struct vnode *vp, *mvp;
-	size_t visited, purged;
+	size_t visited __sdt_used, purged __sdt_used;
 
 	visited = purged = 0;
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302211350.31LDoZuJ002017>