summaryrefslogtreecommitdiff
path: root/arch/x86/um
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-10-27 21:26:41 +0300
committerArnd Bergmann <arnd@arndb.de>2019-11-15 16:38:28 +0300
commit82210fc778982d9386e266fa5f0b52cde5c2f0cf (patch)
tree7fe91384fb13bb7c1286d74bdde9191b2544a522 /arch/x86/um
parentddccf40fe82b7ac7c44b186ec4b6d1d1bbc2cbff (diff)
downloadlinux-82210fc778982d9386e266fa5f0b52cde5c2f0cf.tar.xz
y2038: vdso: change timespec to __kernel_old_timespec
In order to remove 'timespec' completely from the kernel, all internal uses should be converted to a y2038-safe type, while those that are only for compatibity with existing user space should be marked appropriately. Change vdso to use __kernel_old_timespec in order to avoid the deprecated type and mark these interfaces as outdated. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/x86/um')
-rw-r--r--arch/x86/um/vdso/um_vdso.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/um/vdso/um_vdso.c b/arch/x86/um/vdso/um_vdso.c
index 845336c11364..371724cf70da 100644
--- a/arch/x86/um/vdso/um_vdso.c
+++ b/arch/x86/um/vdso/um_vdso.c
@@ -13,7 +13,7 @@
#include <linux/getcpu.h>
#include <asm/unistd.h>
-int __vdso_clock_gettime(clockid_t clock, struct timespec *ts)
+int __vdso_clock_gettime(clockid_t clock, struct __kernel_old_timespec *ts)
{
long ret;
@@ -22,7 +22,7 @@ int __vdso_clock_gettime(clockid_t clock, struct timespec *ts)
return ret;
}
-int clock_gettime(clockid_t, struct timespec *)
+int clock_gettime(clockid_t, struct __kernel_old_timespec *)
__attribute__((weak, alias("__vdso_clock_gettime")));
int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)