git: 1bbc898dbf72 - main - zfs: annotate arc_buf_is_shared with __maybe_unused
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 01 Oct 2025 10:18:57 UTC
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) {