diff options
| author | Mateusz Guzik <mjg@FreeBSD.org> | 2025-10-01 10:17:14 +0000 |
|---|---|---|
| committer | Mateusz Guzik <mjg@FreeBSD.org> | 2025-10-01 10:18:53 +0000 |
| commit | 1bbc898dbf72638ac0dfbc666f62d39dbd68258a (patch) | |
| tree | 28201e44a046fc5cc438a5575bb2e2057d29b8a3 | |
| parent | bce8cdaf4cb184db577a5633e82bdabe24239af1 (diff) | |
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")
| -rw-r--r-- | sys/contrib/openzfs/module/zfs/arc.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |
