diff options
Diffstat (limited to 'fs/compat_ioctl.c')
-rw-r--r-- | fs/compat_ioctl.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 03e59aa318eb..34cf03cd791f 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c | |||
@@ -46,7 +46,6 @@ | |||
46 | #include <linux/videodev.h> | 46 | #include <linux/videodev.h> |
47 | #include <linux/netdevice.h> | 47 | #include <linux/netdevice.h> |
48 | #include <linux/raw.h> | 48 | #include <linux/raw.h> |
49 | #include <linux/smb_fs.h> | ||
50 | #include <linux/blkdev.h> | 49 | #include <linux/blkdev.h> |
51 | #include <linux/elevator.h> | 50 | #include <linux/elevator.h> |
52 | #include <linux/rtc.h> | 51 | #include <linux/rtc.h> |
@@ -558,25 +557,6 @@ static int mt_ioctl_trans(unsigned int fd, unsigned int cmd, void __user *argp) | |||
558 | 557 | ||
559 | #endif /* CONFIG_BLOCK */ | 558 | #endif /* CONFIG_BLOCK */ |
560 | 559 | ||
561 | static int do_smb_getmountuid(unsigned int fd, unsigned int cmd, | ||
562 | compat_uid_t __user *argp) | ||
563 | { | ||
564 | mm_segment_t old_fs = get_fs(); | ||
565 | __kernel_uid_t kuid; | ||
566 | int err; | ||
567 | |||
568 | cmd = SMB_IOC_GETMOUNTUID; | ||
569 | |||
570 | set_fs(KERNEL_DS); | ||
571 | err = sys_ioctl(fd, cmd, (unsigned long)&kuid); | ||
572 | set_fs(old_fs); | ||
573 | |||
574 | if (err >= 0) | ||
575 | err = put_user(kuid, argp); | ||
576 | |||
577 | return err; | ||
578 | } | ||
579 | |||
580 | /* Bluetooth ioctls */ | 560 | /* Bluetooth ioctls */ |
581 | #define HCIUARTSETPROTO _IOW('U', 200, int) | 561 | #define HCIUARTSETPROTO _IOW('U', 200, int) |
582 | #define HCIUARTGETPROTO _IOR('U', 201, int) | 562 | #define HCIUARTGETPROTO _IOR('U', 201, int) |
@@ -1265,8 +1245,6 @@ COMPATIBLE_IOCTL(OSS_GETVERSION) | |||
1265 | /* Raw devices */ | 1245 | /* Raw devices */ |
1266 | COMPATIBLE_IOCTL(RAW_SETBIND) | 1246 | COMPATIBLE_IOCTL(RAW_SETBIND) |
1267 | COMPATIBLE_IOCTL(RAW_GETBIND) | 1247 | COMPATIBLE_IOCTL(RAW_GETBIND) |
1268 | /* SMB ioctls which do not need any translations */ | ||
1269 | COMPATIBLE_IOCTL(SMB_IOC_NEWCONN) | ||
1270 | /* Watchdog */ | 1248 | /* Watchdog */ |
1271 | COMPATIBLE_IOCTL(WDIOC_GETSUPPORT) | 1249 | COMPATIBLE_IOCTL(WDIOC_GETSUPPORT) |
1272 | COMPATIBLE_IOCTL(WDIOC_GETSTATUS) | 1250 | COMPATIBLE_IOCTL(WDIOC_GETSTATUS) |
@@ -1528,10 +1506,6 @@ static long do_ioctl_trans(int fd, unsigned int cmd, | |||
1528 | case RAW_GETBIND: | 1506 | case RAW_GETBIND: |
1529 | return raw_ioctl(fd, cmd, argp); | 1507 | return raw_ioctl(fd, cmd, argp); |
1530 | #endif | 1508 | #endif |
1531 | /* One SMB ioctl needs translations. */ | ||
1532 | #define SMB_IOC_GETMOUNTUID_32 _IOR('u', 1, compat_uid_t) | ||
1533 | case SMB_IOC_GETMOUNTUID_32: | ||
1534 | return do_smb_getmountuid(fd, cmd, argp); | ||
1535 | /* Serial */ | 1509 | /* Serial */ |
1536 | case TIOCGSERIAL: | 1510 | case TIOCGSERIAL: |
1537 | case TIOCSSERIAL: | 1511 | case TIOCSSERIAL: |