Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: vdso: Use generic union vdso_data_store

There is already a generic union definition for vdso_data_store in the 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-10-anna-maria@linutronix.de

authored by

Anna-Maria Behnsen and committed by
Thomas Gleixner
d697a999 8d87d2cd

+1 -6
-5
arch/mips/include/asm/vdso.h
··· 50 50 extern struct mips_vdso_image vdso_image_n32; 51 51 #endif 52 52 53 - union mips_vdso_data { 54 - struct vdso_data data[CS_BASES]; 55 - u8 page[PAGE_SIZE]; 56 - }; 57 - 58 53 #endif /* __ASM_VDSO_H */
+1 -1
arch/mips/kernel/vdso.c
··· 24 24 #include <vdso/vsyscall.h> 25 25 26 26 /* Kernel-provided data used by the VDSO. */ 27 - static union mips_vdso_data mips_vdso_data __page_aligned_data; 27 + static union vdso_data_store mips_vdso_data __page_aligned_data; 28 28 struct vdso_data *vdso_data = mips_vdso_data.data; 29 29 30 30 /*