Skip to content

Commit 8d87d2c

Browse files
anna-marialxKAGA-KOKO
authored andcommitted
LoongArch: vdso: Use generic union vdso_data_store
There is already a generic union definition for vdso_data_store in vdso datapage header. Use this definition to prevent code duplication. Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com> Reviewed-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20240219153939.75719-9-anna-maria@linutronix.de
1 parent cb3444c commit 8d87d2c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

arch/loongarch/kernel/vdso.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,13 @@
2121
#include <asm/vdso.h>
2222
#include <vdso/helpers.h>
2323
#include <vdso/vsyscall.h>
24+
#include <vdso/datapage.h>
2425
#include <generated/vdso-offsets.h>
2526

2627
extern char vdso_start[], vdso_end[];
2728

2829
/* Kernel-provided data used by the VDSO. */
29-
static union {
30-
u8 page[PAGE_SIZE];
31-
struct vdso_data data[CS_BASES];
32-
} generic_vdso_data __page_aligned_data;
30+
static union vdso_data_store generic_vdso_data __page_aligned_data;
3331

3432
static union {
3533
u8 page[LOONGARCH_VDSO_DATA_SIZE];

0 commit comments

Comments
 (0)