summaryrefslogtreecommitdiff
path: root/arch/s390
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2021-01-24 19:44:18 +0100
committerVasily Gorbik <gor@linux.ibm.com>2021-02-09 15:57:05 +0100
commit1432cfe69e25819d96f653a4a44dad41e1163a83 (patch)
tree5b10283a1f79f798bc9d1681b231cd53c2d5d0b6 /arch/s390
parent74b6844803e47754323137b2283bd58620b49302 (diff)
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 <agordeev@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/kernel/vdso.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/kernel/vdso.c b/arch/s390/kernel/vdso.c
index 8bc269c55fd3..c6aeddcd687d 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)
{