Skip to content

Commit

Permalink
selftests: vDSO: parse_vdso: Use UAPI headers instead of libc headers
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Thomas Weißschuh authored and Thomas Gleixner committed Mar 3, 2025
1 parent 09dcec6 commit c9fbaa8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tools/testing/selftests/vDSO/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ LDLIBS += -lgcc_s
endif

include ../lib.mk

CFLAGS += $(TOOLS_INCLUDES)

$(OUTPUT)/vdso_test_gettimeofday: parse_vdso.c vdso_test_gettimeofday.c
$(OUTPUT)/vdso_test_getcpu: parse_vdso.c vdso_test_getcpu.c
$(OUTPUT)/vdso_test_abi: parse_vdso.c vdso_test_abi.c
Expand Down
3 changes: 2 additions & 1 deletion tools/testing/selftests/vDSO/parse_vdso.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
#include <stdint.h>
#include <string.h>
#include <limits.h>
#include <elf.h>
#include <linux/auxvec.h>
#include <linux/elf.h>

#include "parse_vdso.h"

Expand Down

0 comments on commit c9fbaa8

Please sign in to comment.