Skip to content

Commit cb3444c

Browse files
anna-marialxKAGA-KOKO
authored andcommitted
s390/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> Acked-by: Heiko Carstens <hca@linux.ibm.com> Link: https://lore.kernel.org/r/20240219153939.75719-8-anna-maria@linutronix.de
1 parent eba7553 commit cb3444c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

arch/s390/kernel/vdso.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ extern char vdso32_start[], vdso32_end[];
2525

2626
static struct vm_special_mapping vvar_mapping;
2727

28-
static union {
29-
struct vdso_data data[CS_BASES];
30-
u8 page[PAGE_SIZE];
31-
} vdso_data_store __page_aligned_data;
28+
static union vdso_data_store vdso_data_store __page_aligned_data;
3229

3330
struct vdso_data *vdso_data = vdso_data_store.data;
3431

0 commit comments

Comments
 (0)