From: Heiko Carstens Date: Sun, 24 Jan 2021 18:44:18 +0000 (+0100) Subject: s390/vdso: fix vdso data page definition X-Git-Tag: v5.15~1740^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1432cfe69e25819d96f653a4a44dad41e1163a83;p=platform%2Fkernel%2Flinux-starfive.git s390/vdso: fix vdso data page definition The vdso data page actually contains an array. Fix that. This doesn't fix a real bug, just reflects reality. Reviewed-by: Alexander Gordeev Signed-off-by: Heiko Carstens Signed-off-by: Vasily Gorbik --- diff --git a/arch/s390/kernel/vdso.c b/arch/s390/kernel/vdso.c index 8bc269c..c6aeddc 100644 --- a/arch/s390/kernel/vdso.c +++ b/arch/s390/kernel/vdso.c @@ -87,10 +87,10 @@ __setup("vdso=", vdso_setup); * The vdso data page */ static union { - struct vdso_data data; + struct vdso_data data[CS_BASES]; u8 page[PAGE_SIZE]; } vdso_data_store __page_aligned_data; -struct vdso_data *vdso_data = (struct vdso_data *)&vdso_data_store.data; +struct vdso_data *vdso_data = vdso_data_store.data; void vdso_getcpu_init(void) {