Skip to content

Commit 56145a0

Browse files
anna-marialxKAGA-KOKO
authored andcommitted
csky/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: Guo Ren <guoren@kernel.org> Link: https://lore.kernel.org/r/20240219153939.75719-11-anna-maria@linutronix.de
1 parent d697a99 commit 56145a0

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

arch/csky/kernel/vdso.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,8 @@ extern char vdso_start[], vdso_end[];
1515
static unsigned int vdso_pages;
1616
static struct page **vdso_pagelist;
1717

18-
/*
19-
* The vDSO data page.
20-
*/
21-
static union {
22-
struct vdso_data data;
23-
u8 page[PAGE_SIZE];
24-
} vdso_data_store __page_aligned_data;
25-
struct vdso_data *vdso_data = &vdso_data_store.data;
18+
static union vdso_data_store vdso_data_store __page_aligned_data;
19+
struct vdso_data *vdso_data = vdso_data_store.data;
2620

2721
static int __init vdso_init(void)
2822
{

0 commit comments

Comments
 (0)