Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Oct 2025 10:18:57 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: 1bbc898dbf72 - main - zfs: annotate arc_buf_is_shared with __maybe_unused
Message-ID:  <202510011018.591AIvio093752@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=1bbc898dbf72638ac0dfbc666f62d39dbd68258a

commit 1bbc898dbf72638ac0dfbc666f62d39dbd68258a
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2025-10-01 10:17:14 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2025-10-01 10:18:53 +0000

    zfs: annotate arc_buf_is_shared with __maybe_unused
    
    To avoid a compilation warning. The routine turned out to be rather
    stubborn when it comes to trying to ifdef it out.
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/contrib/openzfs/module/zfs/arc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/contrib/openzfs/module/zfs/arc.c b/sys/contrib/openzfs/module/zfs/arc.c
index bd6dc8edd8ca..591e2dade59e 100644
--- a/sys/contrib/openzfs/module/zfs/arc.c
+++ b/sys/contrib/openzfs/module/zfs/arc.c
@@ -1392,6 +1392,7 @@ arc_get_complevel(arc_buf_t *buf)
 	return (buf->b_hdr->b_complevel);
 }
 
+__maybe_unused
 static inline boolean_t
 arc_buf_is_shared(arc_buf_t *buf)
 {



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