[tip: timers/vdso] vdso: Remove __ASSEMBLER__ guards from vsyscall.h

From: tip-bot2 for Thomas Weißschuh

Date: Thu Oct 15 2026 - 12:32:34 EST


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

Commit-ID: 9e61cabcce2bdc14a5e4c0b08b2fbf5515f2ac23
Gitweb: https://git.kernel.org/tip/9e61cabcce2bdc14a5e4c0b08b2fbf5515f2ac23
Author: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
AuthorDate: Wed, 09 Sep 2026 10:51:28 +02:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxx>
CommitterDate: Thu, 15 Oct 2026 17:33:20 +02:00

vdso: Remove __ASSEMBLER__ guards from vsyscall.h

These headers are only used from regular C code.

Remove the unnecessary guards.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
Link: https://patch.msgid.link/20260909-vdso-asm-generic-vsyscall-h-v1-15-63ae856cc659@xxxxxxxxxxxxx
---
arch/arm/include/asm/vdso/vsyscall.h | 4 ----
arch/arm64/include/asm/vdso/vsyscall.h | 4 ----
include/vdso/vsyscall.h | 4 ----
3 files changed, 12 deletions(-)

diff --git a/arch/arm/include/asm/vdso/vsyscall.h b/arch/arm/include/asm/vdso/vsyscall.h
index 14f2ea9..b97dda1 100644
--- a/arch/arm/include/asm/vdso/vsyscall.h
+++ b/arch/arm/include/asm/vdso/vsyscall.h
@@ -2,8 +2,6 @@
#ifndef __ASM_VDSO_VSYSCALL_H
#define __ASM_VDSO_VSYSCALL_H

-#ifndef __ASSEMBLY__
-
#include <vdso/datapage.h>
#include <asm/cacheflush.h>

@@ -14,6 +12,4 @@ void __arch_sync_vdso_time_data(struct vdso_time_data *vdata)
}
#define __arch_sync_vdso_time_data __arch_sync_vdso_time_data

-#endif /* !__ASSEMBLY__ */
-
#endif /* __ASM_VDSO_VSYSCALL_H */
diff --git a/arch/arm64/include/asm/vdso/vsyscall.h b/arch/arm64/include/asm/vdso/vsyscall.h
index 7d9d6bd..7c46c37 100644
--- a/arch/arm64/include/asm/vdso/vsyscall.h
+++ b/arch/arm64/include/asm/vdso/vsyscall.h
@@ -2,8 +2,6 @@
#ifndef __ASM_VDSO_VSYSCALL_H
#define __ASM_VDSO_VSYSCALL_H

-#ifndef __ASSEMBLER__
-
#include <vdso/datapage.h>

#define VDSO_PRECISION_MASK ~(0xFF00ULL<<48)
@@ -19,6 +17,4 @@ void __arch_update_vdso_clock(struct vdso_clock *vc)
}
#define __arch_update_vdso_clock __arch_update_vdso_clock

-#endif /* !__ASSEMBLER__ */
-
#endif /* __ASM_VDSO_VSYSCALL_H */
diff --git a/include/vdso/vsyscall.h b/include/vdso/vsyscall.h
index 29dd4e0..af62bbf 100644
--- a/include/vdso/vsyscall.h
+++ b/include/vdso/vsyscall.h
@@ -2,10 +2,6 @@
#ifndef __VDSO_VSYSCALL_H
#define __VDSO_VSYSCALL_H

-#ifndef __ASSEMBLER__
-
#include <asm/vdso/vsyscall.h>

-#endif /* !__ASSEMBLER__ */
-
#endif /* __VDSO_VSYSCALL_H */