]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kallsyms: fix build without execinfo
authorAchill Gilgenast <fossdd@pwned.life>
Sun, 22 Jun 2025 01:45:49 +0000 (03:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:35:14 +0000 (18:35 +0200)
commit688bf63ee6ba04cbaa47a1233716dddb821b7c26
tree50310a02963bd00235df1ea1457d0220eaa1e1b3
parentc23a41086899ac1b0d2106c3760a6bde58bd170e
kallsyms: fix build without execinfo

commit a95743b53031b015e8949e845a9f6fdfb2656347 upstream.

Some libc's like musl libc don't provide execinfo.h since it's not part of
POSIX.  In order to fix compilation on musl, only include execinfo.h if
available (HAVE_BACKTRACE_SUPPORT)

This was discovered with c104c16073b7 ("Kunit to check the longest symbol
length") which starts to include linux/kallsyms.h with Alpine Linux'
configs.

Link: https://lkml.kernel.org/r/20250622014608.448718-1-fossdd@pwned.life
Fixes: c104c16073b7 ("Kunit to check the longest symbol length")
Signed-off-by: Achill Gilgenast <fossdd@pwned.life>
Cc: Luis Henriques <luis@igalia.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/include/linux/kallsyms.h