diff options
Diffstat (limited to 'fs/compat_ioctl.c')
| -rw-r--r-- | fs/compat_ioctl.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 63ae85831464..5d9b936c458b 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c | |||
| @@ -131,23 +131,6 @@ static int w_long(unsigned int fd, unsigned int cmd, | |||
| 131 | return err; | 131 | return err; |
| 132 | } | 132 | } |
| 133 | 133 | ||
| 134 | static int rw_long(unsigned int fd, unsigned int cmd, | ||
| 135 | compat_ulong_t __user *argp) | ||
| 136 | { | ||
| 137 | mm_segment_t old_fs = get_fs(); | ||
| 138 | int err; | ||
| 139 | unsigned long val; | ||
| 140 | |||
| 141 | if(get_user(val, argp)) | ||
| 142 | return -EFAULT; | ||
| 143 | set_fs (KERNEL_DS); | ||
| 144 | err = sys_ioctl(fd, cmd, (unsigned long)&val); | ||
| 145 | set_fs (old_fs); | ||
| 146 | if (!err && put_user(val, argp)) | ||
| 147 | return -EFAULT; | ||
| 148 | return err; | ||
| 149 | } | ||
| 150 | |||
| 151 | struct compat_video_event { | 134 | struct compat_video_event { |
| 152 | int32_t type; | 135 | int32_t type; |
| 153 | compat_time_t timestamp; | 136 | compat_time_t timestamp; |
| @@ -594,12 +577,6 @@ static int do_smb_getmountuid(unsigned int fd, unsigned int cmd, | |||
| 594 | return err; | 577 | return err; |
| 595 | } | 578 | } |
| 596 | 579 | ||
| 597 | static int ioc_settimeout(unsigned int fd, unsigned int cmd, | ||
| 598 | compat_ulong_t __user *argp) | ||
| 599 | { | ||
| 600 | return rw_long(fd, AUTOFS_IOC_SETTIMEOUT, argp); | ||
| 601 | } | ||
| 602 | |||
| 603 | /* Bluetooth ioctls */ | 580 | /* Bluetooth ioctls */ |
| 604 | #define HCIUARTSETPROTO _IOW('U', 200, int) | 581 | #define HCIUARTSETPROTO _IOW('U', 200, int) |
| 605 | #define HCIUARTGETPROTO _IOR('U', 201, int) | 582 | #define HCIUARTGETPROTO _IOR('U', 201, int) |
| @@ -1284,13 +1261,6 @@ COMPATIBLE_IOCTL(SOUND_MIXER_PRIVATE5) | |||
| 1284 | COMPATIBLE_IOCTL(SOUND_MIXER_GETLEVELS) | 1261 | COMPATIBLE_IOCTL(SOUND_MIXER_GETLEVELS) |
| 1285 | COMPATIBLE_IOCTL(SOUND_MIXER_SETLEVELS) | 1262 | COMPATIBLE_IOCTL(SOUND_MIXER_SETLEVELS) |
| 1286 | COMPATIBLE_IOCTL(OSS_GETVERSION) | 1263 | COMPATIBLE_IOCTL(OSS_GETVERSION) |
| 1287 | /* AUTOFS */ | ||
| 1288 | COMPATIBLE_IOCTL(AUTOFS_IOC_CATATONIC) | ||
| 1289 | COMPATIBLE_IOCTL(AUTOFS_IOC_PROTOVER) | ||
| 1290 | COMPATIBLE_IOCTL(AUTOFS_IOC_EXPIRE) | ||
| 1291 | COMPATIBLE_IOCTL(AUTOFS_IOC_EXPIRE_MULTI) | ||
| 1292 | COMPATIBLE_IOCTL(AUTOFS_IOC_PROTOSUBVER) | ||
| 1293 | COMPATIBLE_IOCTL(AUTOFS_IOC_ASKUMOUNT) | ||
| 1294 | /* Raw devices */ | 1264 | /* Raw devices */ |
| 1295 | COMPATIBLE_IOCTL(RAW_SETBIND) | 1265 | COMPATIBLE_IOCTL(RAW_SETBIND) |
| 1296 | COMPATIBLE_IOCTL(RAW_GETBIND) | 1266 | COMPATIBLE_IOCTL(RAW_GETBIND) |
| @@ -1557,9 +1527,6 @@ static long do_ioctl_trans(int fd, unsigned int cmd, | |||
| 1557 | case RAW_GETBIND: | 1527 | case RAW_GETBIND: |
| 1558 | return raw_ioctl(fd, cmd, argp); | 1528 | return raw_ioctl(fd, cmd, argp); |
| 1559 | #endif | 1529 | #endif |
| 1560 | #define AUTOFS_IOC_SETTIMEOUT32 _IOWR(0x93,0x64,unsigned int) | ||
| 1561 | case AUTOFS_IOC_SETTIMEOUT32: | ||
| 1562 | return ioc_settimeout(fd, cmd, argp); | ||
| 1563 | /* One SMB ioctl needs translations. */ | 1530 | /* One SMB ioctl needs translations. */ |
| 1564 | #define SMB_IOC_GETMOUNTUID_32 _IOR('u', 1, compat_uid_t) | 1531 | #define SMB_IOC_GETMOUNTUID_32 _IOR('u', 1, compat_uid_t) |
| 1565 | case SMB_IOC_GETMOUNTUID_32: | 1532 | case SMB_IOC_GETMOUNTUID_32: |
| @@ -1614,9 +1581,6 @@ static long do_ioctl_trans(int fd, unsigned int cmd, | |||
| 1614 | case KDSKBMETA: | 1581 | case KDSKBMETA: |
| 1615 | case KDSKBLED: | 1582 | case KDSKBLED: |
| 1616 | case KDSETLED: | 1583 | case KDSETLED: |
| 1617 | /* AUTOFS */ | ||
| 1618 | case AUTOFS_IOC_READY: | ||
| 1619 | case AUTOFS_IOC_FAIL: | ||
| 1620 | /* NBD */ | 1584 | /* NBD */ |
| 1621 | case NBD_SET_SOCK: | 1585 | case NBD_SET_SOCK: |
| 1622 | case NBD_SET_BLKSIZE: | 1586 | case NBD_SET_BLKSIZE: |
