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 GitHub
parent 3ef2d5ee45
commit 346ecac61b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
{