From ae22044da998e27497c3ad6724a0c64c89cfd87f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Matu=C5=A1ka?= Date: Wed, 29 May 2024 19:51:01 +0200 Subject: [PATCH] spl: fix compilation without HAVE_BACKTRACE The __maybe_unused macro is defined in spl/sys/debug.h Reviewed-by: Brian Behlendorf Signed-off-by: Martin Matuska Closes #16229 --- lib/libspl/backtrace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libspl/backtrace.c b/lib/libspl/backtrace.c index dd8cb025f..d26d74210 100644 --- a/lib/libspl/backtrace.c +++ b/lib/libspl/backtrace.c @@ -110,6 +110,8 @@ libspl_backtrace(int fd) backtrace_symbols_fd(btptrs, nptrs, fd); } #else +#include + void libspl_backtrace(int fd __maybe_unused) {