Skip to content

Commit 6c73fd8

Browse files
mjguziktonyhutter
authored andcommitted
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 openzfs#17818
1 parent 9050ecb commit 6c73fd8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

module/zfs/arc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,6 +1392,7 @@ arc_get_complevel(arc_buf_t *buf)
13921392
return (buf->b_hdr->b_complevel);
13931393
}
13941394

1395+
__maybe_unused
13951396
static inline boolean_t
13961397
arc_buf_is_shared(arc_buf_t *buf)
13971398
{

0 commit comments

Comments
 (0)