hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/x86/um/vdso/um_vdso.c
....@@ -1,9 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2011 Richard Weinberger <richrd@nod.at>
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 *
85 * This vDSO turns all calls into a syscall so that UML can trap them.
96 */
....@@ -16,7 +13,7 @@
1613 #include <linux/getcpu.h>
1714 #include <asm/unistd.h>
1815
19
-int __vdso_clock_gettime(clockid_t clock, struct timespec *ts)
16
+int __vdso_clock_gettime(clockid_t clock, struct __kernel_old_timespec *ts)
2017 {
2118 long ret;
2219
....@@ -25,10 +22,10 @@
2522
2623 return ret;
2724 }
28
-int clock_gettime(clockid_t, struct timespec *)
25
+int clock_gettime(clockid_t, struct __kernel_old_timespec *)
2926 __attribute__((weak, alias("__vdso_clock_gettime")));
3027
31
-int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz)
28
+int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
3229 {
3330 long ret;
3431
....@@ -37,10 +34,10 @@
3734
3835 return ret;
3936 }
40
-int gettimeofday(struct timeval *, struct timezone *)
37
+int gettimeofday(struct __kernel_old_timeval *, struct timezone *)
4138 __attribute__((weak, alias("__vdso_gettimeofday")));
4239
43
-time_t __vdso_time(time_t *t)
40
+__kernel_old_time_t __vdso_time(__kernel_old_time_t *t)
4441 {
4542 long secs;
4643
....@@ -50,7 +47,7 @@
5047
5148 return secs;
5249 }
53
-int time(time_t *t) __attribute__((weak, alias("__vdso_time")));
50
+__kernel_old_time_t time(__kernel_old_time_t *t) __attribute__((weak, alias("__vdso_time")));
5451
5552 long
5653 __vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused)