Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests: vDSO: parse_vdso: Use UAPI headers instead of libc headers

To allow the usage of parse_vdso.c together with a limited libc like
nolibc, use the kernels own elf.h and auxvec.h headers.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/all/20250226-parse_vdso-nolibc-v2-12-28e14e031ed8@linutronix.de

authored by

Thomas Weißschuh and committed by
Thomas Gleixner
c9fbaa87 09dcec64

+5 -1
+3
tools/testing/selftests/vDSO/Makefile
··· 19 19 endif 20 20 21 21 include ../lib.mk 22 + 23 + CFLAGS += $(TOOLS_INCLUDES) 24 + 22 25 $(OUTPUT)/vdso_test_gettimeofday: parse_vdso.c vdso_test_gettimeofday.c 23 26 $(OUTPUT)/vdso_test_getcpu: parse_vdso.c vdso_test_getcpu.c 24 27 $(OUTPUT)/vdso_test_abi: parse_vdso.c vdso_test_abi.c
+2 -1
tools/testing/selftests/vDSO/parse_vdso.c
··· 19 19 #include <stdint.h> 20 20 #include <string.h> 21 21 #include <limits.h> 22 - #include <elf.h> 22 + #include <linux/auxvec.h> 23 + #include <linux/elf.h> 23 24 24 25 #include "parse_vdso.h" 25 26