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@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260909-vdso-asm-generic-vsyscall-h-v1-7-63ae856cc659@linutronix.de
This commit is contained in:
Thomas Weißschuh 2026-09-09 10:51:20 +02:00 committed by Thomas Gleixner
parent 8051a0f482
commit 782478555f
3 changed files with 7 additions and 3 deletions

View File

@ -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 */

View File

@ -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 */

View File

@ -6,7 +6,7 @@
#include <vdso/datapage.h>
#include <vdso/page.h>
#include <asm/vdso/vsyscall.h>
#include <asm/vdso.h>
SECTIONS
{