mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "tip-bot2 for Thomas Weißschuh" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: thomas.weissschuh@linutronix.de,
	Thomas Gleixner <tglx@linutronix.de>,
	Vincenzo Frascino <vincenzo.frascino@arm.com>,
	Shuah Khan <skhan@linuxfoundation.org>,
	x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: timers/vdso] selftests: vDSO: parse_vdso: Use UAPI headers instead of libc headers
Date: Mon, 03 Mar 2025 19:12:57 -0000	[thread overview]
Message-ID: <174102917783.14745.15601586293194249587.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20250226-parse_vdso-nolibc-v2-12-28e14e031ed8@linutronix.de>

The following commit has been merged into the timers/vdso branch of tip:

Commit-ID:     c9fbaa879508ea36f5be0b3f1125b8f9f11b4945
Gitweb:        https://git.kernel.org/tip/c9fbaa879508ea36f5be0b3f1125b8f9f11b4945
Author:        Thomas Weißschuh <thomas.weissschuh@linutronix.de>
AuthorDate:    Wed, 26 Feb 2025 12:44:51 +01:00
Committer:     Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Mon, 03 Mar 2025 20:00:12 +01:00

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
---
 tools/testing/selftests/vDSO/Makefile     | 3 +++
 tools/testing/selftests/vDSO/parse_vdso.c | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/tools/testing/selftests/vDSO/Makefile b/tools/testing/selftests/vDSO/Makefile
index 1cf14a8..bc8ca18 100644
--- a/tools/testing/selftests/vDSO/Makefile
+++ b/tools/testing/selftests/vDSO/Makefile
@@ -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
diff --git a/tools/testing/selftests/vDSO/parse_vdso.c b/tools/testing/selftests/vDSO/parse_vdso.c
index 3638fe6..200c534 100644
--- a/tools/testing/selftests/vDSO/parse_vdso.c
+++ b/tools/testing/selftests/vDSO/parse_vdso.c
@@ -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"
 

  parent reply	other threads:[~2025-03-03 19:12 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-26 11:44 [PATCH v2 00/16] selftests: vDSO: parse_vdso: Make compatible with nolibc Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 01/16] MAINTAINERS: Add vDSO selftests Thomas Weißschuh
2025-02-28 12:22   ` Vincenzo Frascino
2025-03-03 19:13   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 02/16] elf, uapi: Add definition for STN_UNDEF Thomas Weißschuh
2025-02-28 12:23   ` Vincenzo Frascino
2025-03-03 19:13   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 03/16] elf, uapi: Add definition for DT_GNU_HASH Thomas Weißschuh
2025-02-28 12:23   ` Vincenzo Frascino
2025-03-03 19:13   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 04/16] elf, uapi: Add definitions for VER_FLG_BASE and VER_FLG_WEAK Thomas Weißschuh
2025-02-28 12:24   ` Vincenzo Frascino
2025-03-03 19:13   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 05/16] elf, uapi: Add type ElfXX_Versym Thomas Weißschuh
2025-02-28 12:24   ` Vincenzo Frascino
2025-03-03 19:13   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 06/16] elf, uapi: Add types ElfXX_Verdef and ElfXX_Veraux Thomas Weißschuh
2025-02-28 12:25   ` Vincenzo Frascino
2025-03-03 19:13   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 07/16] tools/include: Add uapi/linux/elf.h Thomas Weißschuh
2025-02-28 12:25   ` Vincenzo Frascino
2025-03-03 19:13   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 08/16] selftests: Add headers target Thomas Weißschuh
2025-02-28 12:26   ` Vincenzo Frascino
2025-03-03 19:13   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 09/16] tools/nolibc: add limits.h shim header Thomas Weißschuh
2025-02-28 12:27   ` Vincenzo Frascino
2025-03-01 11:30   ` Willy Tarreau
2025-03-03 19:12   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 10/16] selftests: vDSO: vdso_standalone_test_x86: Use vdso_init_form_sysinfo_ehdr Thomas Weißschuh
2025-02-28 12:28   ` Vincenzo Frascino
2025-03-03 19:12   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 11/16] selftests: vDSO: parse_vdso: Drop vdso_init_from_auxv() Thomas Weißschuh
2025-02-28 12:28   ` Vincenzo Frascino
2025-03-03 19:12   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 12/16] selftests: vDSO: parse_vdso: Use UAPI headers instead of libc headers Thomas Weißschuh
2025-02-28 12:29   ` Vincenzo Frascino
2025-03-03 19:12   ` tip-bot2 for Thomas Weißschuh [this message]
2025-03-20 13:23   ` Mark Brown
2025-03-26 13:02     ` Mark Brown
2025-03-28 23:08       ` Shuah Khan
2025-03-31 11:56         ` Mark Brown
2025-04-04 13:03           ` Mark Brown
2025-02-26 11:44 ` [PATCH v2 13/16] selftests: vDSO: parse_vdso: Test __SIZEOF_LONG__ instead of ULONG_MAX Thomas Weißschuh
2025-02-28 12:29   ` Vincenzo Frascino
2025-03-03 19:12   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 14/16] selftests: vDSO: vdso_test_gettimeofday: Clean up includes Thomas Weißschuh
2025-02-28 12:29   ` Vincenzo Frascino
2025-03-03 19:12   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 15/16] selftests: vDSO: vdso_test_gettimeofday: Make compatible with nolibc Thomas Weißschuh
2025-02-28 12:30   ` Vincenzo Frascino
2025-03-03 19:12   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 16/16] selftests: vDSO: vdso_standalone_test_x86: Switch to nolibc Thomas Weißschuh
2025-02-28 12:31   ` Vincenzo Frascino
2025-03-03 19:12   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-09-17 15:32   ` [PATCH v2 16/16] " Jason Gunthorpe
2025-09-17 16:24     ` Thomas Weißschuh
2025-09-17 16:47       ` Jason Gunthorpe
2025-02-26 21:18 ` [PATCH v2 00/16] selftests: vDSO: parse_vdso: Make compatible with nolibc Shuah Khan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=174102917783.14745.15601586293194249587.tip-bot2@tip-bot2 \
    --to=tip-bot2@linutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=skhan@linuxfoundation.org \
    --cc=tglx@linutronix.de \
    --cc=thomas.weissschuh@linutronix.de \
    --cc=vincenzo.frascino@arm.com \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®