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 <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Closes #17818
This commit is contained in:
Mateusz Guzik 2025-10-07 01:43:20 +02:00 committed by Tony Hutter
parent 9050ecb75c
commit 6c73fd8eeb

View File

@ -1392,6 +1392,7 @@ arc_get_complevel(arc_buf_t *buf)
return (buf->b_hdr->b_complevel); return (buf->b_hdr->b_complevel);
} }
__maybe_unused
static inline boolean_t static inline boolean_t
arc_buf_is_shared(arc_buf_t *buf) arc_buf_is_shared(arc_buf_t *buf)
{ {