Skip to content

Commit

Permalink
spl: fix compilation without HAVE_BACKTRACE
Browse files Browse the repository at this point in the history
The __maybe_unused macro is defined in spl/sys/debug.h

Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Martin Matuska <[email protected]>
Closes openzfs#16229
  • Loading branch information
mmatuska authored May 29, 2024
1 parent 01c8efd commit ae22044
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/libspl/backtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ libspl_backtrace(int fd)
backtrace_symbols_fd(btptrs, nptrs, fd);
}
#else
#include <sys/debug.h>

void
libspl_backtrace(int fd __maybe_unused)
{
Expand Down

0 comments on commit ae22044

Please sign in to comment.