summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorHisam Mehboob <hisamshar@gmail.com>2026-08-25 03:28:47 +0500
committerAlex Williamson <alex@shazbot.org>2026-09-22 18:56:21 -0600
commite11a07856ba06867a4c0c8aa91770e1b209dea98 (patch)
tree58e51072b2cfdffaa0853e7069c6d349e10a9d7d /tools/perf/scripts/python/stackcollapse.py
parentcee9395acd8043be0644b25c34bfa86623f2b935 (diff)
downloadlinux-next-e11a07856ba06867a4c0c8aa91770e1b209dea98.tar.gz
linux-next-e11a07856ba06867a4c0c8aa91770e1b209dea98.zip
vfio: selftests: Include <libgen.h> for basename() on non-glibc builds
sysfs.c calls basename() but does not include its declaration. Glibc exposes basename() through <string.h> with _GNU_SOURCE, while musl declares it in <libgen.h>. With musl, this results in an implicit-function-declaration error and subsequent type-mismatch errors at the callers. Include <libgen.h> so the declaration is available on both glibc and musl. This is safe at both call sites: the arguments are local writable char[PATH_MAX] buffers filled by readlink_safe(). Link: https://lore.kernel.org/kvm/CALzav=fs4bqMM7BXNPXqhtbqGzA+LW5fgx2-1Q5=sTN5+krYhw@mail.gmail.com/ Fixes: a262fc49e0aa ("KVM: selftests: Build and link selftests/vfio/lib into KVM selftests") Reviewed-by: David Matlack <dmatlack@google.com> Signed-off-by: Hisam Mehboob <hisamshar@gmail.com> Link: https://lore.kernel.org/r/20260824222845.459181-3-hisamshar@gmail.com Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions