From: Fang Xieyan <fangxy@xiaopeng.com>
To: Andy Lutomirski <luto@kernel.org>,
Thomas Gleixner <tglx@kernel.org>,
Vincenzo Frascino <vincenzo.frascino@arm.com>,
x86@kernel.org
Cc: "Ingo Molnar" <mingo@redhat.com>,
"Borislav Petkov" <bp@alien8.de>,
"Dave Hansen" <dave.hansen@linux.intel.com>,
"Arnd Bergmann" <arnd@arndb.de>,
"Thomas Weißschuh" <linux@weissschuh.net>,
"Huacai Chen" <chenhuacai@kernel.org>,
"WANG Xuerui" <kernel@xen0n.name>,
"Paul Walmsley" <pjw@kernel.org>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Alexandre Ghiti" <alex@ghiti.fr>,
linux-arch@vger.kernel.org, linux-riscv@lists.infradead.org,
loongarch@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [RFC PATCH 5/5] loongarch: Drop redundant internal header includes from the vDSO sources
Date: Tue, 1 Dec 2026 18:24:10 +0800 [thread overview]
Message-ID: <20261201102410.44071-6-fangxy@xiaopeng.com> (raw)
In-Reply-To: <20261201102410.44071-1-fangxy@xiaopeng.com>
Patch 3 made the sanctioned headers self-contained via <vdso/types.h>,
so the direct <linux/types.h> includes in the loongarch vDSO sources
are dead weight: they are the only thing keeping the internal
<linux/types.h> -> <asm/...> -> bitsperlong chain alive inside these
vDSO translation units.
The vDSO Makefile already force-includes the sanctioned headers
(c-gettimeofday-y / c-getrandom-y), so dropping the includes brings
loongarch to the same shape as arm64, whose vDSO sources contain no
direct type includes at all.
Signed-off-by: Fang Xieyan <fangxy@xiaopeng.com>
---
Build-tested at this commit (= series tip): loongarch64 defconfig
cross-build (clang --target=loongarch64-linux-gnu) completes with 0
errors and still produces arch/loongarch/vdso/vdso.so(.dbg); the riscv
build was verified green in the same tree state.
arch/loongarch/vdso/vgetrandom.c | 1 -
arch/loongarch/vdso/vgettimeofday.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/arch/loongarch/vdso/vgetrandom.c b/arch/loongarch/vdso/vgetrandom.c
index d5f258ac4a36..0940972669ed 100644
--- a/arch/loongarch/vdso/vgetrandom.c
+++ b/arch/loongarch/vdso/vgetrandom.c
@@ -2,7 +2,6 @@
/*
* Copyright (C) 2024 Xi Ruoyao <xry111@xry111.site>. All Rights Reserved.
*/
-#include <linux/types.h>
ssize_t __vdso_getrandom(void *buffer, size_t len, unsigned int flags, void *opaque_state, size_t opaque_len)
{
diff --git a/arch/loongarch/vdso/vgettimeofday.c b/arch/loongarch/vdso/vgettimeofday.c
index 0885c1f3a89d..8896d77bc66f 100644
--- a/arch/loongarch/vdso/vgettimeofday.c
+++ b/arch/loongarch/vdso/vgettimeofday.c
@@ -4,7 +4,6 @@
*
* Copyright (C) 2020-2022 Loongson Technology Corporation Limited
*/
-#include <linux/types.h>
#include <vdso/gettime.h>
int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
--
2.50.1
next prev parent reply other threads:[~2026-12-01 10:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 10:24 [RFC PATCH 0/5] vdso: Provide a sanitized subset of UAPI types for vDSO code Fang Xieyan
2026-12-01 10:24 ` [RFC PATCH 1/5] vdso: Provide a sanitized subset of UAPI types Fang Xieyan
2026-12-01 11:28 ` Thomas Weißschuh
2026-12-01 10:24 ` [RFC PATCH 2/5] x86/vdso: Drop redundant kernel header includes Fang Xieyan
2026-12-01 10:24 ` [RFC PATCH 3/5] vdso: Switch the sanctioned headers to vdso/types.h Fang Xieyan
2026-12-01 10:24 ` [RFC PATCH 4/5] riscv: Drop redundant internal header includes from the vDSO sources Fang Xieyan
2026-12-01 10:24 ` Fang Xieyan [this message]
2026-12-01 11:55 [RFC PATCH 0/5] vdso: Provide a sanitized subset of UAPI types for vDSO code Fang Xieyan
2026-12-01 11:55 ` [RFC PATCH 5/5] loongarch: Drop redundant internal header includes from the vDSO sources Fang Xieyan
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=20261201102410.44071-6-fangxy@xiaopeng.com \
--to=fangxy@xiaopeng.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=arnd@arndb.de \
--cc=bp@alien8.de \
--cc=chenhuacai@kernel.org \
--cc=dave.hansen@linux.intel.com \
--cc=kernel@xen0n.name \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux@weissschuh.net \
--cc=loongarch@lists.linux.dev \
--cc=luto@kernel.org \
--cc=mingo@redhat.com \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=tglx@kernel.org \
--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®