diff options
Diffstat (limited to 'arch/mips/kernel/linux32.c')
-rw-r--r-- | arch/mips/kernel/linux32.c | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c index f33e779796f0..3f40c37a9ee6 100644 --- a/arch/mips/kernel/linux32.c +++ b/arch/mips/kernel/linux32.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <linux/utime.h> | 30 | #include <linux/utime.h> |
31 | #include <linux/utsname.h> | 31 | #include <linux/utsname.h> |
32 | #include <linux/personality.h> | 32 | #include <linux/personality.h> |
33 | #include <linux/timex.h> | ||
34 | #include <linux/dnotify.h> | 33 | #include <linux/dnotify.h> |
35 | #include <linux/module.h> | 34 | #include <linux/module.h> |
36 | #include <linux/binfmts.h> | 35 | #include <linux/binfmts.h> |
@@ -1157,66 +1156,6 @@ out: | |||
1157 | return err; | 1156 | return err; |
1158 | } | 1157 | } |
1159 | 1158 | ||
1160 | /* Handle adjtimex compatibility. */ | ||
1161 | |||
1162 | extern int do_adjtimex(struct timex *); | ||
1163 | |||
1164 | asmlinkage int sys32_adjtimex(struct compat_timex __user *utp) | ||
1165 | { | ||
1166 | struct timex txc; | ||
1167 | int ret; | ||
1168 | |||
1169 | memset(&txc, 0, sizeof(struct timex)); | ||
1170 | |||
1171 | if (get_user(txc.modes, &utp->modes) || | ||
1172 | __get_user(txc.offset, &utp->offset) || | ||
1173 | __get_user(txc.freq, &utp->freq) || | ||
1174 | __get_user(txc.maxerror, &utp->maxerror) || | ||
1175 | __get_user(txc.esterror, &utp->esterror) || | ||
1176 | __get_user(txc.status, &utp->status) || | ||
1177 | __get_user(txc.constant, &utp->constant) || | ||
1178 | __get_user(txc.precision, &utp->precision) || | ||
1179 | __get_user(txc.tolerance, &utp->tolerance) || | ||
1180 | __get_user(txc.time.tv_sec, &utp->time.tv_sec) || | ||
1181 | __get_user(txc.time.tv_usec, &utp->time.tv_usec) || | ||
1182 | __get_user(txc.tick, &utp->tick) || | ||
1183 | __get_user(txc.ppsfreq, &utp->ppsfreq) || | ||
1184 | __get_user(txc.jitter, &utp->jitter) || | ||
1185 | __get_user(txc.shift, &utp->shift) || | ||
1186 | __get_user(txc.stabil, &utp->stabil) || | ||
1187 | __get_user(txc.jitcnt, &utp->jitcnt) || | ||
1188 | __get_user(txc.calcnt, &utp->calcnt) || | ||
1189 | __get_user(txc.errcnt, &utp->errcnt) || | ||
1190 | __get_user(txc.stbcnt, &utp->stbcnt)) | ||
1191 | return -EFAULT; | ||
1192 | |||
1193 | ret = do_adjtimex(&txc); | ||
1194 | |||
1195 | if (put_user(txc.modes, &utp->modes) || | ||
1196 | __put_user(txc.offset, &utp->offset) || | ||
1197 | __put_user(txc.freq, &utp->freq) || | ||
1198 | __put_user(txc.maxerror, &utp->maxerror) || | ||
1199 | __put_user(txc.esterror, &utp->esterror) || | ||
1200 | __put_user(txc.status, &utp->status) || | ||
1201 | __put_user(txc.constant, &utp->constant) || | ||
1202 | __put_user(txc.precision, &utp->precision) || | ||
1203 | __put_user(txc.tolerance, &utp->tolerance) || | ||
1204 | __put_user(txc.time.tv_sec, &utp->time.tv_sec) || | ||
1205 | __put_user(txc.time.tv_usec, &utp->time.tv_usec) || | ||
1206 | __put_user(txc.tick, &utp->tick) || | ||
1207 | __put_user(txc.ppsfreq, &utp->ppsfreq) || | ||
1208 | __put_user(txc.jitter, &utp->jitter) || | ||
1209 | __put_user(txc.shift, &utp->shift) || | ||
1210 | __put_user(txc.stabil, &utp->stabil) || | ||
1211 | __put_user(txc.jitcnt, &utp->jitcnt) || | ||
1212 | __put_user(txc.calcnt, &utp->calcnt) || | ||
1213 | __put_user(txc.errcnt, &utp->errcnt) || | ||
1214 | __put_user(txc.stbcnt, &utp->stbcnt)) | ||
1215 | ret = -EFAULT; | ||
1216 | |||
1217 | return ret; | ||
1218 | } | ||
1219 | |||
1220 | asmlinkage int sys32_sendfile(int out_fd, int in_fd, compat_off_t __user *offset, | 1159 | asmlinkage int sys32_sendfile(int out_fd, int in_fd, compat_off_t __user *offset, |
1221 | s32 count) | 1160 | s32 count) |
1222 | { | 1161 | { |