mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-01-25 10:12:13 +03:00
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:
parent
9050ecb75c
commit
6c73fd8eeb
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user