[tip: timers/vdso] sparc/vdso: Move __VDSO_PAGES to asm/vdso.h

From: tip-bot2 for Thomas Weißschuh

Date: Thu Oct 15 2026 - 12:19:23 EST


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

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

sparc/vdso: Move __VDSO_PAGES to asm/vdso.h

Most architectures define the __VDSO_PAGES page macro in asm/vdso.h.

Align the SPARC headers.

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-7-63ae856cc659@xxxxxxxxxxxxx
---
arch/sparc/include/asm/vdso.h | 6 ++++++
arch/sparc/include/asm/vdso/vsyscall.h | 2 --
arch/sparc/vdso/vdso-layout.lds.S | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/arch/sparc/include/asm/vdso.h b/arch/sparc/include/asm/vdso.h
index f08562d..b17c37c 100644
--- a/arch/sparc/include/asm/vdso.h
+++ b/arch/sparc/include/asm/vdso.h
@@ -5,6 +5,10 @@
#ifndef _ASM_SPARC_VDSO_H
#define _ASM_SPARC_VDSO_H

+#define __VDSO_PAGES 4
+
+#ifndef __ASSEMBLER__
+
struct vdso_image {
void *data;
unsigned long size; /* Always a multiple of PAGE_SIZE */
@@ -17,4 +21,6 @@ extern const struct vdso_image vdso_image_64_builtin;
extern const struct vdso_image vdso_image_32_builtin;
#endif

+#endif /* __ASSEMBLER__ */
+
#endif /* _ASM_SPARC_VDSO_H */
diff --git a/arch/sparc/include/asm/vdso/vsyscall.h b/arch/sparc/include/asm/vdso/vsyscall.h
index b08e0bd..ff62b29 100644
--- a/arch/sparc/include/asm/vdso/vsyscall.h
+++ b/arch/sparc/include/asm/vdso/vsyscall.h
@@ -3,6 +3,4 @@
#ifndef _ASM_SPARC_VDSO_VSYSCALL_H
#define _ASM_SPARC_VDSO_VSYSCALL_H

-#define __VDSO_PAGES 4
-
#endif /* _ASM_SPARC_VDSO_VSYSCALL_H */
diff --git a/arch/sparc/vdso/vdso-layout.lds.S b/arch/sparc/vdso/vdso-layout.lds.S
index 180e5d0..9203962 100644
--- a/arch/sparc/vdso/vdso-layout.lds.S
+++ b/arch/sparc/vdso/vdso-layout.lds.S
@@ -6,7 +6,7 @@

#include <vdso/datapage.h>
#include <vdso/page.h>
-#include <asm/vdso/vsyscall.h>
+#include <asm/vdso.h>

SECTIONS
{