From 6c73fd8eebec0f4cd4d3d2a26d851668cedfd30a Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Tue, 7 Oct 2025 01:43:20 +0200 Subject: [PATCH] Annotate arc_buf_is_shared as __maybe_unused Otherwise the compiler warns about it on production FreeBSD builds. The routine proved resilient to attempts to ifdef on debug. Sponsored by: Rubicon Communications, LLC ("Netgate") Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Mateusz Guzik Closes #17818 --- module/zfs/arc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/module/zfs/arc.c b/module/zfs/arc.c index df41e3b49..b677f9028 100644 --- a/module/zfs/arc.c +++ b/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) {