diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-28 12:44:56 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-28 12:44:56 -0400 |
commit | e4c5bf8e3dca827a1b3a6fac494eae8c74b7e1e7 (patch) | |
tree | ea51b391f7d74ca695dcb9f5e46eb02688a92ed9 /fs/compat_ioctl.c | |
parent | 81280572ca6f54009edfa4deee563e8678784218 (diff) | |
parent | a4ac0d847af9dd34d5953a5e264400326144b6b2 (diff) |
Merge 'staging-next' to Linus's tree
This merges the staging-next tree to Linus's tree and resolves
some conflicts that were present due to changes in other trees that were
affected by files here.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/compat_ioctl.c')
-rw-r--r-- | fs/compat_ioctl.c | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index d0ad09d57789..410ed188faa1 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) |
@@ -1199,8 +1179,9 @@ COMPATIBLE_IOCTL(SOUND_MIXER_PRIVATE5) | |||
1199 | COMPATIBLE_IOCTL(SOUND_MIXER_GETLEVELS) | 1179 | COMPATIBLE_IOCTL(SOUND_MIXER_GETLEVELS) |
1200 | COMPATIBLE_IOCTL(SOUND_MIXER_SETLEVELS) | 1180 | COMPATIBLE_IOCTL(SOUND_MIXER_SETLEVELS) |
1201 | COMPATIBLE_IOCTL(OSS_GETVERSION) | 1181 | COMPATIBLE_IOCTL(OSS_GETVERSION) |
1202 | /* SMB ioctls which do not need any translations */ | 1182 | /* Raw devices */ |
1203 | COMPATIBLE_IOCTL(SMB_IOC_NEWCONN) | 1183 | COMPATIBLE_IOCTL(RAW_SETBIND) |
1184 | COMPATIBLE_IOCTL(RAW_GETBIND) | ||
1204 | /* Watchdog */ | 1185 | /* Watchdog */ |
1205 | COMPATIBLE_IOCTL(WDIOC_GETSUPPORT) | 1186 | COMPATIBLE_IOCTL(WDIOC_GETSUPPORT) |
1206 | COMPATIBLE_IOCTL(WDIOC_GETSTATUS) | 1187 | COMPATIBLE_IOCTL(WDIOC_GETSTATUS) |
@@ -1458,10 +1439,6 @@ static long do_ioctl_trans(int fd, unsigned int cmd, | |||
1458 | case MTIOCPOS32: | 1439 | case MTIOCPOS32: |
1459 | return mt_ioctl_trans(fd, cmd, argp); | 1440 | return mt_ioctl_trans(fd, cmd, argp); |
1460 | #endif | 1441 | #endif |
1461 | /* One SMB ioctl needs translations. */ | ||
1462 | #define SMB_IOC_GETMOUNTUID_32 _IOR('u', 1, compat_uid_t) | ||
1463 | case SMB_IOC_GETMOUNTUID_32: | ||
1464 | return do_smb_getmountuid(fd, cmd, argp); | ||
1465 | /* Serial */ | 1442 | /* Serial */ |
1466 | case TIOCGSERIAL: | 1443 | case TIOCGSERIAL: |
1467 | case TIOCSSERIAL: | 1444 | case TIOCSSERIAL: |