diff options
-rw-r--r-- | include/linux/syscalls.h | 6 | ||||
-rw-r--r-- | kernel/time/posix-stubs.c | 6 | ||||
-rw-r--r-- | kernel/time/posix-timers.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 70fcda1a9049..40bb40d1741b 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
@@ -567,11 +567,11 @@ asmlinkage long sys_timer_settime(timer_t timer_id, int flags, | |||
567 | struct itimerspec __user *old_setting); | 567 | struct itimerspec __user *old_setting); |
568 | asmlinkage long sys_timer_delete(timer_t timer_id); | 568 | asmlinkage long sys_timer_delete(timer_t timer_id); |
569 | asmlinkage long sys_clock_settime(clockid_t which_clock, | 569 | asmlinkage long sys_clock_settime(clockid_t which_clock, |
570 | const struct timespec __user *tp); | 570 | const struct __kernel_timespec __user *tp); |
571 | asmlinkage long sys_clock_gettime(clockid_t which_clock, | 571 | asmlinkage long sys_clock_gettime(clockid_t which_clock, |
572 | struct timespec __user *tp); | 572 | struct __kernel_timespec __user *tp); |
573 | asmlinkage long sys_clock_getres(clockid_t which_clock, | 573 | asmlinkage long sys_clock_getres(clockid_t which_clock, |
574 | struct timespec __user *tp); | 574 | struct __kernel_timespec __user *tp); |
575 | asmlinkage long sys_clock_nanosleep(clockid_t which_clock, int flags, | 575 | asmlinkage long sys_clock_nanosleep(clockid_t which_clock, int flags, |
576 | const struct timespec __user *rqtp, | 576 | const struct timespec __user *rqtp, |
577 | struct timespec __user *rmtp); | 577 | struct timespec __user *rmtp); |
diff --git a/kernel/time/posix-stubs.c b/kernel/time/posix-stubs.c index b605b0a40ba9..4e76021cea7f 100644 --- a/kernel/time/posix-stubs.c +++ b/kernel/time/posix-stubs.c | |||
@@ -59,7 +59,7 @@ SYS_NI(alarm); | |||
59 | */ | 59 | */ |
60 | 60 | ||
61 | SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock, | 61 | SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock, |
62 | const struct timespec __user *, tp) | 62 | const struct __kernel_timespec __user *, tp) |
63 | { | 63 | { |
64 | struct timespec64 new_tp; | 64 | struct timespec64 new_tp; |
65 | 65 | ||
@@ -92,7 +92,7 @@ int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) | |||
92 | return 0; | 92 | return 0; |
93 | } | 93 | } |
94 | SYSCALL_DEFINE2(clock_gettime, const clockid_t, which_clock, | 94 | SYSCALL_DEFINE2(clock_gettime, const clockid_t, which_clock, |
95 | struct timespec __user *, tp) | 95 | struct __kernel_timespec __user *, tp) |
96 | { | 96 | { |
97 | int ret; | 97 | int ret; |
98 | struct timespec64 kernel_tp; | 98 | struct timespec64 kernel_tp; |
@@ -106,7 +106,7 @@ SYSCALL_DEFINE2(clock_gettime, const clockid_t, which_clock, | |||
106 | return 0; | 106 | return 0; |
107 | } | 107 | } |
108 | 108 | ||
109 | SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock, struct timespec __user *, tp) | 109 | SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock, struct __kernel_timespec __user *, tp) |
110 | { | 110 | { |
111 | struct timespec64 rtn_tp = { | 111 | struct timespec64 rtn_tp = { |
112 | .tv_sec = 0, | 112 | .tv_sec = 0, |
diff --git a/kernel/time/posix-timers.c b/kernel/time/posix-timers.c index 147d79e2cef5..93b2c38ad0f3 100644 --- a/kernel/time/posix-timers.c +++ b/kernel/time/posix-timers.c | |||
@@ -1041,7 +1041,7 @@ void exit_itimers(struct signal_struct *sig) | |||
1041 | } | 1041 | } |
1042 | 1042 | ||
1043 | SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock, | 1043 | SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock, |
1044 | const struct timespec __user *, tp) | 1044 | const struct __kernel_timespec __user *, tp) |
1045 | { | 1045 | { |
1046 | const struct k_clock *kc = clockid_to_kclock(which_clock); | 1046 | const struct k_clock *kc = clockid_to_kclock(which_clock); |
1047 | struct timespec64 new_tp; | 1047 | struct timespec64 new_tp; |
@@ -1056,7 +1056,7 @@ SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock, | |||
1056 | } | 1056 | } |
1057 | 1057 | ||
1058 | SYSCALL_DEFINE2(clock_gettime, const clockid_t, which_clock, | 1058 | SYSCALL_DEFINE2(clock_gettime, const clockid_t, which_clock, |
1059 | struct timespec __user *,tp) | 1059 | struct __kernel_timespec __user *, tp) |
1060 | { | 1060 | { |
1061 | const struct k_clock *kc = clockid_to_kclock(which_clock); | 1061 | const struct k_clock *kc = clockid_to_kclock(which_clock); |
1062 | struct timespec64 kernel_tp; | 1062 | struct timespec64 kernel_tp; |
@@ -1097,7 +1097,7 @@ SYSCALL_DEFINE2(clock_adjtime, const clockid_t, which_clock, | |||
1097 | } | 1097 | } |
1098 | 1098 | ||
1099 | SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock, | 1099 | SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock, |
1100 | struct timespec __user *, tp) | 1100 | struct __kernel_timespec __user *, tp) |
1101 | { | 1101 | { |
1102 | const struct k_clock *kc = clockid_to_kclock(which_clock); | 1102 | const struct k_clock *kc = clockid_to_kclock(which_clock); |
1103 | struct timespec64 rtn_tp; | 1103 | struct timespec64 rtn_tp; |