get rid of {get,put}_compat_itimerspec()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 Sep 2017 00:42:54 +0000 (20:42 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 19 Sep 2017 21:56:00 +0000 (17:56 -0400)
no users left

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/compat.h
kernel/compat.c

index ab1baa79abe89b2c601faad2dd1552f723795db2..21d30be5c0a517d78b5eb6f9d5056a29589c82f7 100644 (file)
@@ -443,11 +443,6 @@ static inline int compat_timespec_compare(struct compat_timespec *lhs,
        return lhs->tv_nsec - rhs->tv_nsec;
 }
 
-extern int get_compat_itimerspec(struct itimerspec *dst,
-                                const struct compat_itimerspec __user *src);
-extern int put_compat_itimerspec(struct compat_itimerspec __user *dst,
-                                const struct itimerspec *src);
-
 asmlinkage long compat_sys_gettimeofday(struct compat_timeval __user *tv,
                struct timezone __user *tz);
 asmlinkage long compat_sys_settimeofday(struct compat_timeval __user *tv,
index 18dd902c9052bc98228b3bd6f9f2cc27f2dff69b..d43b18031116978dab3cb60b90c83cc2afbff128 100644 (file)
@@ -367,24 +367,6 @@ COMPAT_SYSCALL_DEFINE3(sched_getaffinity, compat_pid_t,  pid, unsigned int, len,
        return ret;
 }
 
-int get_compat_itimerspec(struct itimerspec *dst,
-                         const struct compat_itimerspec __user *src)
-{
-       if (__compat_get_timespec(&dst->it_interval, &src->it_interval) ||
-           __compat_get_timespec(&dst->it_value, &src->it_value))
-               return -EFAULT;
-       return 0;
-}
-
-int put_compat_itimerspec(struct compat_itimerspec __user *dst,
-                         const struct itimerspec *src)
-{
-       if (__compat_put_timespec(&src->it_interval, &dst->it_interval) ||
-           __compat_put_timespec(&src->it_value, &dst->it_value))
-               return -EFAULT;
-       return 0;
-}
-
 int get_compat_itimerspec64(struct itimerspec64 *its,
                        const struct compat_itimerspec __user *uits)
 {