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 fa4bc48810fd..70227e0dc01d 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) |
@@ -1285,13 +1262,6 @@ COMPATIBLE_IOCTL(SOUND_MIXER_PRIVATE5) | |||
1285 | COMPATIBLE_IOCTL(SOUND_MIXER_GETLEVELS) | 1262 | COMPATIBLE_IOCTL(SOUND_MIXER_GETLEVELS) |
1286 | COMPATIBLE_IOCTL(SOUND_MIXER_SETLEVELS) | 1263 | COMPATIBLE_IOCTL(SOUND_MIXER_SETLEVELS) |
1287 | COMPATIBLE_IOCTL(OSS_GETVERSION) | 1264 | COMPATIBLE_IOCTL(OSS_GETVERSION) |
1288 | /* AUTOFS */ | ||
1289 | COMPATIBLE_IOCTL(AUTOFS_IOC_CATATONIC) | ||
1290 | COMPATIBLE_IOCTL(AUTOFS_IOC_PROTOVER) | ||
1291 | COMPATIBLE_IOCTL(AUTOFS_IOC_EXPIRE) | ||
1292 | COMPATIBLE_IOCTL(AUTOFS_IOC_EXPIRE_MULTI) | ||
1293 | COMPATIBLE_IOCTL(AUTOFS_IOC_PROTOSUBVER) | ||
1294 | COMPATIBLE_IOCTL(AUTOFS_IOC_ASKUMOUNT) | ||
1295 | /* Raw devices */ | 1265 | /* Raw devices */ |
1296 | COMPATIBLE_IOCTL(RAW_SETBIND) | 1266 | COMPATIBLE_IOCTL(RAW_SETBIND) |
1297 | COMPATIBLE_IOCTL(RAW_GETBIND) | 1267 | COMPATIBLE_IOCTL(RAW_GETBIND) |
@@ -1558,9 +1528,6 @@ static long do_ioctl_trans(int fd, unsigned int cmd, | |||
1558 | case RAW_GETBIND: | 1528 | case RAW_GETBIND: |
1559 | return raw_ioctl(fd, cmd, argp); | 1529 | return raw_ioctl(fd, cmd, argp); |
1560 | #endif | 1530 | #endif |
1561 | #define AUTOFS_IOC_SETTIMEOUT32 _IOWR(0x93,0x64,unsigned int) | ||
1562 | case AUTOFS_IOC_SETTIMEOUT32: | ||
1563 | return ioc_settimeout(fd, cmd, argp); | ||
1564 | /* One SMB ioctl needs translations. */ | 1531 | /* One SMB ioctl needs translations. */ |
1565 | #define SMB_IOC_GETMOUNTUID_32 _IOR('u', 1, compat_uid_t) | 1532 | #define SMB_IOC_GETMOUNTUID_32 _IOR('u', 1, compat_uid_t) |
1566 | case SMB_IOC_GETMOUNTUID_32: | 1533 | case SMB_IOC_GETMOUNTUID_32: |
@@ -1615,9 +1582,6 @@ static long do_ioctl_trans(int fd, unsigned int cmd, | |||
1615 | case KDSKBMETA: | 1582 | case KDSKBMETA: |
1616 | case KDSKBLED: | 1583 | case KDSKBLED: |
1617 | case KDSETLED: | 1584 | case KDSETLED: |
1618 | /* AUTOFS */ | ||
1619 | case AUTOFS_IOC_READY: | ||
1620 | case AUTOFS_IOC_FAIL: | ||
1621 | /* NBD */ | 1585 | /* NBD */ |
1622 | case NBD_SET_SOCK: | 1586 | case NBD_SET_SOCK: |
1623 | case NBD_SET_BLKSIZE: | 1587 | case NBD_SET_BLKSIZE: |