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@kernel.org>,
	x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: timers/vdso] Revert "selftests: vDSO: parse_vdso: Use UAPI headers instead of libc headers"
Date: Wed, 11 Mar 2026 09:31:11 -0000	[thread overview]
Message-ID: <177322147161.1647592.1518356728073568951.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20260227-vdso-selftest-cleanups-v2-1-d84830fa8beb@linutronix.de>

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

Commit-ID:     8919083b6a0bb76d43e44da4ab0f08f52456434a
Gitweb:        https://git.kernel.org/tip/8919083b6a0bb76d43e44da4ab0f08f52456434a
Author:        Thomas Weißschuh <thomas.weissschuh@linutronix.de>
AuthorDate:    Fri, 27 Feb 2026 07:45:56 +01:00
Committer:     Thomas Gleixner <tglx@kernel.org>
CommitterDate: Wed, 11 Mar 2026 10:27:39 +01:00

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

This reverts commit c9fbaa879508 ("selftests: vDSO: parse_vdso: Use UAPI
headers instead of libc headers")

The kernel headers were used to make parse_vdso.c compatible with
nolibc.  Unfortunately linux/elf.h is incompatible with glibc's
sys/auxv.h. When using glibc it is therefore not possible build
parse_vdso.c as part of the same compilation unit as its caller
as sys/auxv.h is needed for getauxval().

In the meantime nolibc gained its own elf.h, providing compatibility
with the documented libc interfaces.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260227-vdso-selftest-cleanups-v2-1-d84830fa8beb@linutronix.de
---
 tools/testing/selftests/vDSO/Makefile     | 2 --
 tools/testing/selftests/vDSO/parse_vdso.c | 3 +--
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/tools/testing/selftests/vDSO/Makefile b/tools/testing/selftests/vDSO/Makefile
index e361aca..2de5cef 100644
--- a/tools/testing/selftests/vDSO/Makefile
+++ b/tools/testing/selftests/vDSO/Makefile
@@ -19,8 +19,6 @@ endif
 
 include ../lib.mk
 
-CFLAGS += $(TOOLS_INCLUDES)
-
 CFLAGS_NOLIBC := -nostdlib -nostdinc -ffreestanding -fno-asynchronous-unwind-tables \
 		 -fno-stack-protector -include $(top_srcdir)/tools/include/nolibc/nolibc.h \
 		 -I$(top_srcdir)/tools/include/nolibc/ $(KHDR_INCLUDES)
diff --git a/tools/testing/selftests/vDSO/parse_vdso.c b/tools/testing/selftests/vDSO/parse_vdso.c
index 3ff00fb..c6ff441 100644
--- a/tools/testing/selftests/vDSO/parse_vdso.c
+++ b/tools/testing/selftests/vDSO/parse_vdso.c
@@ -19,8 +19,7 @@
 #include <stdint.h>
 #include <string.h>
 #include <limits.h>
-#include <linux/auxvec.h>
-#include <linux/elf.h>
+#include <elf.h>
 
 #include "parse_vdso.h"
 

  reply	other threads:[~2026-03-11  9:31 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-27  6:45 [PATCH v2 0/6] selftests: vDSO: Assorted cleanups and improvements Thomas Weißschuh
2026-02-27  6:45 ` [PATCH v2 1/6] Revert "selftests: vDSO: parse_vdso: Use UAPI headers instead of libc headers" Thomas Weißschuh
2026-03-11  9:31   ` tip-bot2 for Thomas Weißschuh [this message]
2026-03-11 14:51   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2026-02-27  6:45 ` [PATCH v2 2/6] selftests: vDSO: vdso_test_gettimeofday: Remove nolibc checks Thomas Weißschuh
2026-03-11  9:31   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2026-03-11 14:51   ` tip-bot2 for Thomas Weißschuh
2026-02-27  6:45 ` [PATCH v2 3/6] selftests: vDSO: vdso_test_correctness: Drop SYS_getcpu fallbacks Thomas Weißschuh
2026-03-11  9:31   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2026-03-11 14:51   ` tip-bot2 for Thomas Weißschuh
2026-02-27  6:45 ` [PATCH v2 4/6] selftests: vDSO: vdso_test_correctness: Handle different tv_usec types Thomas Weißschuh
2026-03-11  9:31   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2026-03-11 14:51   ` tip-bot2 for Thomas Weißschuh
2026-02-27  6:46 ` [PATCH v2 5/6] selftests: vDSO: vdso_test_correctness: Use facilities from parse_vdso.c Thomas Weißschuh
2026-03-11  9:31   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2026-03-11 14:51   ` tip-bot2 for Thomas Weißschuh
2026-02-27  6:46 ` [PATCH v2 6/6] selftests: vDSO: vdso_test_correctness: Add a test for time() Thomas Weißschuh
2026-03-11  9:31   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2026-03-11 14:51   ` tip-bot2 for Thomas Weißschuh

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=177322147161.1647592.1518356728073568951.tip-bot2@tip-bot2 \
    --to=tip-bot2@linutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=tglx@kernel.org \
    --cc=thomas.weissschuh@linutronix.de \
    --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®