summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-09-03 20:42:54 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-09-19 17:56:00 -0400
commitb8e8e1aa9f14110da180569908bbe538c9e9dc63 (patch)
tree216e23b813a0a5ff35fa9e8f3d00f67c43727d9b
parentfa2e62a54003419b06f1de7836dca51b368d0872 (diff)
get rid of {get,put}_compat_itimerspec()
no users left Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--include/linux/compat.h5
-rw-r--r--kernel/compat.c18
2 files changed, 0 insertions, 23 deletions
diff --git a/include/linux/compat.h b/include/linux/compat.h
index ab1baa79abe8..21d30be5c0a5 100644
--- a/include/linux/compat.h
+++ b/include/linux/compat.h
@@ -443,11 +443,6 @@ static inline int compat_timespec_compare(struct compat_timespec *lhs,
443 return lhs->tv_nsec - rhs->tv_nsec; 443 return lhs->tv_nsec - rhs->tv_nsec;
444} 444}
445 445
446extern int get_compat_itimerspec(struct itimerspec *dst,
447 const struct compat_itimerspec __user *src);
448extern int put_compat_itimerspec(struct compat_itimerspec __user *dst,
449 const struct itimerspec *src);
450
451asmlinkage long compat_sys_gettimeofday(struct compat_timeval __user *tv, 446asmlinkage long compat_sys_gettimeofday(struct compat_timeval __user *tv,
452 struct timezone __user *tz); 447 struct timezone __user *tz);
453asmlinkage long compat_sys_settimeofday(struct compat_timeval __user *tv, 448asmlinkage long compat_sys_settimeofday(struct compat_timeval __user *tv,
diff --git a/kernel/compat.c b/kernel/compat.c
index 18dd902c9052..d43b18031116 100644
--- a/kernel/compat.c
+++ b/kernel/compat.c
@@ -367,24 +367,6 @@ COMPAT_SYSCALL_DEFINE3(sched_getaffinity, compat_pid_t, pid, unsigned int, len,
367 return ret; 367 return ret;
368} 368}
369 369
370int get_compat_itimerspec(struct itimerspec *dst,
371 const struct compat_itimerspec __user *src)
372{
373 if (__compat_get_timespec(&dst->it_interval, &src->it_interval) ||
374 __compat_get_timespec(&dst->it_value, &src->it_value))
375 return -EFAULT;
376 return 0;
377}
378
379int put_compat_itimerspec(struct compat_itimerspec __user *dst,
380 const struct itimerspec *src)
381{
382 if (__compat_put_timespec(&src->it_interval, &dst->it_interval) ||
383 __compat_put_timespec(&src->it_value, &dst->it_value))
384 return -EFAULT;
385 return 0;
386}
387
388int get_compat_itimerspec64(struct itimerspec64 *its, 370int get_compat_itimerspec64(struct itimerspec64 *its,
389 const struct compat_itimerspec __user *uits) 371 const struct compat_itimerspec __user *uits)
390{ 372{