mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-26 20:55:19 +03:00
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
Patch-Source: https://lore.kernel.org/lkml/20250601183309.225569-1-fossdd@pwned.life/
|
|
---
|
|
From 61ece30858e31c8d0252ed6e3fe12cf1e149f23c Mon Sep 17 00:00:00 2001
|
|
From: Achill Gilgenast <fossdd@pwned.life>
|
|
Date: Sun, 1 Jun 2025 20:08:13 +0200
|
|
Subject: [PATCH] kallsyms: fix build without execinfo
|
|
|
|
Signed-off-by: Achill Gilgenast <fossdd@pwned.life>
|
|
Cc: stable@vger.kernel.org
|
|
---
|
|
tools/include/linux/kallsyms.h | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/tools/include/linux/kallsyms.h b/tools/include/linux/kallsyms.h
|
|
index 5a37ccbec54f..f61a01dd7eb7 100644
|
|
--- a/tools/include/linux/kallsyms.h
|
|
+++ b/tools/include/linux/kallsyms.h
|
|
@@ -18,6 +18,7 @@ static inline const char *kallsyms_lookup(unsigned long addr,
|
|
return NULL;
|
|
}
|
|
|
|
+#ifdef HAVE_BACKTRACE_SUPPORT
|
|
#include <execinfo.h>
|
|
#include <stdlib.h>
|
|
static inline void print_ip_sym(const char *loglvl, unsigned long ip)
|
|
@@ -30,5 +31,8 @@ static inline void print_ip_sym(const char *loglvl, unsigned long ip)
|
|
|
|
free(name);
|
|
}
|
|
+#else
|
|
+static inline void print_ip_sym(const char *loglvl, unsigned long ip) {}
|
|
+#endif
|
|
|
|
#endif
|
|
--
|
|
2.49.0
|
|
|