diff options
Diffstat (limited to 'arch/s390/kernel/compat_linux.c')
-rw-r--r-- | arch/s390/kernel/compat_linux.c | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/arch/s390/kernel/compat_linux.c b/arch/s390/kernel/compat_linux.c index cc058dc3bc8b..5e14de37c17b 100644 --- a/arch/s390/kernel/compat_linux.c +++ b/arch/s390/kernel/compat_linux.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <linux/resource.h> | 26 | #include <linux/resource.h> |
27 | #include <linux/times.h> | 27 | #include <linux/times.h> |
28 | #include <linux/utsname.h> | 28 | #include <linux/utsname.h> |
29 | #include <linux/timex.h> | ||
30 | #include <linux/smp.h> | 29 | #include <linux/smp.h> |
31 | #include <linux/smp_lock.h> | 30 | #include <linux/smp_lock.h> |
32 | #include <linux/sem.h> | 31 | #include <linux/sem.h> |
@@ -705,79 +704,6 @@ asmlinkage long sys32_sendfile64(int out_fd, int in_fd, | |||
705 | return ret; | 704 | return ret; |
706 | } | 705 | } |
707 | 706 | ||
708 | /* Handle adjtimex compatibility. */ | ||
709 | |||
710 | struct timex32 { | ||
711 | u32 modes; | ||
712 | s32 offset, freq, maxerror, esterror; | ||
713 | s32 status, constant, precision, tolerance; | ||
714 | struct compat_timeval time; | ||
715 | s32 tick; | ||
716 | s32 ppsfreq, jitter, shift, stabil; | ||
717 | s32 jitcnt, calcnt, errcnt, stbcnt; | ||
718 | s32 :32; s32 :32; s32 :32; s32 :32; | ||
719 | s32 :32; s32 :32; s32 :32; s32 :32; | ||
720 | s32 :32; s32 :32; s32 :32; s32 :32; | ||
721 | }; | ||
722 | |||
723 | extern int do_adjtimex(struct timex *); | ||
724 | |||
725 | asmlinkage long sys32_adjtimex(struct timex32 __user *utp) | ||
726 | { | ||
727 | struct timex txc; | ||
728 | int ret; | ||
729 | |||
730 | memset(&txc, 0, sizeof(struct timex)); | ||
731 | |||
732 | if(get_user(txc.modes, &utp->modes) || | ||
733 | __get_user(txc.offset, &utp->offset) || | ||
734 | __get_user(txc.freq, &utp->freq) || | ||
735 | __get_user(txc.maxerror, &utp->maxerror) || | ||
736 | __get_user(txc.esterror, &utp->esterror) || | ||
737 | __get_user(txc.status, &utp->status) || | ||
738 | __get_user(txc.constant, &utp->constant) || | ||
739 | __get_user(txc.precision, &utp->precision) || | ||
740 | __get_user(txc.tolerance, &utp->tolerance) || | ||
741 | __get_user(txc.time.tv_sec, &utp->time.tv_sec) || | ||
742 | __get_user(txc.time.tv_usec, &utp->time.tv_usec) || | ||
743 | __get_user(txc.tick, &utp->tick) || | ||
744 | __get_user(txc.ppsfreq, &utp->ppsfreq) || | ||
745 | __get_user(txc.jitter, &utp->jitter) || | ||
746 | __get_user(txc.shift, &utp->shift) || | ||
747 | __get_user(txc.stabil, &utp->stabil) || | ||
748 | __get_user(txc.jitcnt, &utp->jitcnt) || | ||
749 | __get_user(txc.calcnt, &utp->calcnt) || | ||
750 | __get_user(txc.errcnt, &utp->errcnt) || | ||
751 | __get_user(txc.stbcnt, &utp->stbcnt)) | ||
752 | return -EFAULT; | ||
753 | |||
754 | ret = do_adjtimex(&txc); | ||
755 | |||
756 | if(put_user(txc.modes, &utp->modes) || | ||
757 | __put_user(txc.offset, &utp->offset) || | ||
758 | __put_user(txc.freq, &utp->freq) || | ||
759 | __put_user(txc.maxerror, &utp->maxerror) || | ||
760 | __put_user(txc.esterror, &utp->esterror) || | ||
761 | __put_user(txc.status, &utp->status) || | ||
762 | __put_user(txc.constant, &utp->constant) || | ||
763 | __put_user(txc.precision, &utp->precision) || | ||
764 | __put_user(txc.tolerance, &utp->tolerance) || | ||
765 | __put_user(txc.time.tv_sec, &utp->time.tv_sec) || | ||
766 | __put_user(txc.time.tv_usec, &utp->time.tv_usec) || | ||
767 | __put_user(txc.tick, &utp->tick) || | ||
768 | __put_user(txc.ppsfreq, &utp->ppsfreq) || | ||
769 | __put_user(txc.jitter, &utp->jitter) || | ||
770 | __put_user(txc.shift, &utp->shift) || | ||
771 | __put_user(txc.stabil, &utp->stabil) || | ||
772 | __put_user(txc.jitcnt, &utp->jitcnt) || | ||
773 | __put_user(txc.calcnt, &utp->calcnt) || | ||
774 | __put_user(txc.errcnt, &utp->errcnt) || | ||
775 | __put_user(txc.stbcnt, &utp->stbcnt)) | ||
776 | ret = -EFAULT; | ||
777 | |||
778 | return ret; | ||
779 | } | ||
780 | |||
781 | #ifdef CONFIG_SYSCTL | 707 | #ifdef CONFIG_SYSCTL |
782 | struct __sysctl_args32 { | 708 | struct __sysctl_args32 { |
783 | u32 name; | 709 | u32 name; |