Skip to content

Commit eba7553

Browse files
anna-marialxKAGA-KOKO
authored andcommitted
riscv: 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> Link: https://lore.kernel.org/r/20240220085212.6547-1-anna-maria@linutronix.de
1 parent d0fba04 commit eba7553

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

arch/riscv/kernel/vdso.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,8 @@ enum rv_vdso_map {
3030

3131
#define VVAR_SIZE (VVAR_NR_PAGES << PAGE_SHIFT)
3232

33-
/*
34-
* The vDSO data page.
35-
*/
36-
static union {
37-
struct vdso_data data;
38-
u8 page[PAGE_SIZE];
39-
} vdso_data_store __page_aligned_data;
40-
struct vdso_data *vdso_data = &vdso_data_store.data;
33+
static union vdso_data_store vdso_data_store __page_aligned_data;
34+
struct vdso_data *vdso_data = vdso_data_store.data;
4135

4236
struct __vdso_info {
4337
const char *name;

0 commit comments

Comments
 (0)