aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2010-10-04 16:55:57 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-05 12:08:21 -0400
commit2116b7a473bf1c8d26998b477c294e7fe294921f (patch)
tree5f06aca6b425916f763d83fa4516bca51c8f9a60
parent5af74aa5e97fcc0cc3955bc2a7ff6f3a13fa41cb (diff)
smbfs: move to drivers/staging
smbfs has been scheduled for removal in 2.6.27, so maybe we can now move it to drivers/staging on the way out. smbfs still uses the big kernel lock and nobody is going to fix that, so we should be getting rid of it soon. This removes the 32 bit compat mount and ioctl handling code, which is implemented in common fs code, and moves all smbfs related files into drivers/staging/smbfs. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--Documentation/filesystems/00-INDEX2
-rw-r--r--Documentation/ioctl/ioctl-number.txt2
-rw-r--r--drivers/staging/Kconfig2
-rw-r--r--drivers/staging/Makefile1
-rw-r--r--drivers/staging/smbfs/Kconfig (renamed from fs/smbfs/Kconfig)0
-rw-r--r--drivers/staging/smbfs/Makefile (renamed from fs/smbfs/Makefile)0
-rw-r--r--drivers/staging/smbfs/TODO8
-rw-r--r--drivers/staging/smbfs/cache.c (renamed from fs/smbfs/cache.c)2
-rw-r--r--drivers/staging/smbfs/dir.c (renamed from fs/smbfs/dir.c)6
-rw-r--r--drivers/staging/smbfs/file.c (renamed from fs/smbfs/file.c)5
-rw-r--r--drivers/staging/smbfs/getopt.c (renamed from fs/smbfs/getopt.c)0
-rw-r--r--drivers/staging/smbfs/getopt.h (renamed from fs/smbfs/getopt.h)0
-rw-r--r--drivers/staging/smbfs/inode.c (renamed from fs/smbfs/inode.c)8
-rw-r--r--drivers/staging/smbfs/ioctl.c (renamed from fs/smbfs/ioctl.c)5
-rw-r--r--drivers/staging/smbfs/proc.c (renamed from fs/smbfs/proc.c)7
-rw-r--r--drivers/staging/smbfs/proto.h (renamed from fs/smbfs/proto.h)0
-rw-r--r--drivers/staging/smbfs/request.c (renamed from fs/smbfs/request.c)7
-rw-r--r--drivers/staging/smbfs/request.h (renamed from fs/smbfs/request.h)0
-rw-r--r--drivers/staging/smbfs/smb.h (renamed from include/linux/smb.h)0
-rw-r--r--drivers/staging/smbfs/smb_debug.h (renamed from fs/smbfs/smb_debug.h)0
-rw-r--r--drivers/staging/smbfs/smb_fs.h (renamed from include/linux/smb_fs.h)8
-rw-r--r--drivers/staging/smbfs/smb_fs_i.h (renamed from include/linux/smb_fs_i.h)0
-rw-r--r--drivers/staging/smbfs/smb_fs_sb.h (renamed from include/linux/smb_fs_sb.h)2
-rw-r--r--drivers/staging/smbfs/smb_mount.h (renamed from include/linux/smb_mount.h)0
-rw-r--r--drivers/staging/smbfs/smbfs.txt (renamed from Documentation/filesystems/smbfs.txt)0
-rw-r--r--drivers/staging/smbfs/smbiod.c (renamed from fs/smbfs/smbiod.c)7
-rw-r--r--drivers/staging/smbfs/smbno.h (renamed from include/linux/smbno.h)0
-rw-r--r--drivers/staging/smbfs/sock.c (renamed from fs/smbfs/sock.c)7
-rw-r--r--drivers/staging/smbfs/symlink.c (renamed from fs/smbfs/symlink.c)5
-rw-r--r--fs/Kconfig1
-rw-r--r--fs/Makefile1
-rw-r--r--fs/compat.c31
-rw-r--r--fs/compat_ioctl.c26
-rw-r--r--include/linux/Kbuild4
34 files changed, 44 insertions, 103 deletions
diff --git a/Documentation/filesystems/00-INDEX b/Documentation/filesystems/00-INDEX
index 4303614b5add..8c624a18f67d 100644
--- a/Documentation/filesystems/00-INDEX
+++ b/Documentation/filesystems/00-INDEX
@@ -96,8 +96,6 @@ seq_file.txt
96 - how to use the seq_file API 96 - how to use the seq_file API
97sharedsubtree.txt 97sharedsubtree.txt
98 - a description of shared subtrees for namespaces. 98 - a description of shared subtrees for namespaces.
99smbfs.txt
100 - info on using filesystems with the SMB protocol (Win 3.11 and NT).
101spufs.txt 99spufs.txt
102 - info and mount options for the SPU filesystem used on Cell. 100 - info and mount options for the SPU filesystem used on Cell.
103sysfs-pci.txt 101sysfs-pci.txt
diff --git a/Documentation/ioctl/ioctl-number.txt b/Documentation/ioctl/ioctl-number.txt
index 33223ff121d8..d15834a6e461 100644
--- a/Documentation/ioctl/ioctl-number.txt
+++ b/Documentation/ioctl/ioctl-number.txt
@@ -259,7 +259,7 @@ Code Seq#(hex) Include File Comments
259't' 00-7F linux/if_ppp.h 259't' 00-7F linux/if_ppp.h
260't' 80-8F linux/isdn_ppp.h 260't' 80-8F linux/isdn_ppp.h
261't' 90 linux/toshiba.h 261't' 90 linux/toshiba.h
262'u' 00-1F linux/smb_fs.h 262'u' 00-1F linux/smb_fs.h gone
263'v' all linux/videodev.h conflict! 263'v' all linux/videodev.h conflict!
264'v' 00-1F linux/ext2_fs.h conflict! 264'v' 00-1F linux/ext2_fs.h conflict!
265'v' 00-1F linux/fs.h conflict! 265'v' 00-1F linux/fs.h conflict!
diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig
index 01503536e457..4a9190808b73 100644
--- a/drivers/staging/Kconfig
+++ b/drivers/staging/Kconfig
@@ -149,6 +149,8 @@ source "drivers/staging/msm/Kconfig"
149 149
150source "drivers/staging/lirc/Kconfig" 150source "drivers/staging/lirc/Kconfig"
151 151
152source "drivers/staging/smbfs/Kconfig"
153
152source "drivers/staging/easycap/Kconfig" 154source "drivers/staging/easycap/Kconfig"
153 155
154source "drivers/staging/solo6x10/Kconfig" 156source "drivers/staging/solo6x10/Kconfig"
diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile
index de5c0e5a99ed..7cb02a8e9f77 100644
--- a/drivers/staging/Makefile
+++ b/drivers/staging/Makefile
@@ -32,6 +32,7 @@ obj-$(CONFIG_AUTOFS_FS) += autofs/
32obj-$(CONFIG_IDE_PHISON) += phison/ 32obj-$(CONFIG_IDE_PHISON) += phison/
33obj-$(CONFIG_LINE6_USB) += line6/ 33obj-$(CONFIG_LINE6_USB) += line6/
34obj-$(CONFIG_USB_SERIAL_QUATECH2) += serqt_usb2/ 34obj-$(CONFIG_USB_SERIAL_QUATECH2) += serqt_usb2/
35obj-$(CONFIG_SMB_FS) += smbfs/
35obj-$(CONFIG_USB_SERIAL_QUATECH_USB2) += quatech_usb2/ 36obj-$(CONFIG_USB_SERIAL_QUATECH_USB2) += quatech_usb2/
36obj-$(CONFIG_OCTEON_ETHERNET) += octeon/ 37obj-$(CONFIG_OCTEON_ETHERNET) += octeon/
37obj-$(CONFIG_VT6655) += vt6655/ 38obj-$(CONFIG_VT6655) += vt6655/
diff --git a/fs/smbfs/Kconfig b/drivers/staging/smbfs/Kconfig
index e668127c8b2e..e668127c8b2e 100644
--- a/fs/smbfs/Kconfig
+++ b/drivers/staging/smbfs/Kconfig
diff --git a/fs/smbfs/Makefile b/drivers/staging/smbfs/Makefile
index 4faf8c4722c3..4faf8c4722c3 100644
--- a/fs/smbfs/Makefile
+++ b/drivers/staging/smbfs/Makefile
diff --git a/drivers/staging/smbfs/TODO b/drivers/staging/smbfs/TODO
new file mode 100644
index 000000000000..24f4d29d53ac
--- /dev/null
+++ b/drivers/staging/smbfs/TODO
@@ -0,0 +1,8 @@
1smbfs is on its way out of the kernel, it has been replaced
2by cifs several years ago.
3
4The smbfs code uses the big kernel lock which
5is getting deprecated.
6
7Users that find smbfs to work but not cifs should contact
8the CIFS developers on linux-cifs@vger.kernel.org.
diff --git a/fs/smbfs/cache.c b/drivers/staging/smbfs/cache.c
index 8c177eb7e344..dbb98658148b 100644
--- a/fs/smbfs/cache.c
+++ b/drivers/staging/smbfs/cache.c
@@ -13,12 +13,12 @@
13#include <linux/errno.h> 13#include <linux/errno.h>
14#include <linux/kernel.h> 14#include <linux/kernel.h>
15#include <linux/mm.h> 15#include <linux/mm.h>
16#include <linux/smb_fs.h>
17#include <linux/pagemap.h> 16#include <linux/pagemap.h>
18#include <linux/net.h> 17#include <linux/net.h>
19 18
20#include <asm/page.h> 19#include <asm/page.h>
21 20
21#include "smb_fs.h"
22#include "smb_debug.h" 22#include "smb_debug.h"
23#include "proto.h" 23#include "proto.h"
24 24
diff --git a/fs/smbfs/dir.c b/drivers/staging/smbfs/dir.c
index 00a70cab1f36..936b3bb2099c 100644
--- a/fs/smbfs/dir.c
+++ b/drivers/staging/smbfs/dir.c
@@ -15,9 +15,9 @@
15#include <linux/net.h> 15#include <linux/net.h>
16#include <linux/sched.h> 16#include <linux/sched.h>
17 17
18#include <linux/smb_fs.h> 18#include "smb_fs.h"
19#include <linux/smb_mount.h> 19#include "smb_mount.h"
20#include <linux/smbno.h> 20#include "smbno.h"
21 21
22#include "smb_debug.h" 22#include "smb_debug.h"
23#include "proto.h" 23#include "proto.h"
diff --git a/fs/smbfs/file.c b/drivers/staging/smbfs/file.c
index 8e187a0f94bb..5dcd19c60eb9 100644
--- a/fs/smbfs/file.c
+++ b/drivers/staging/smbfs/file.c
@@ -21,9 +21,8 @@
21#include <asm/uaccess.h> 21#include <asm/uaccess.h>
22#include <asm/system.h> 22#include <asm/system.h>
23 23
24#include <linux/smbno.h> 24#include "smbno.h"
25#include <linux/smb_fs.h> 25#include "smb_fs.h"
26
27#include "smb_debug.h" 26#include "smb_debug.h"
28#include "proto.h" 27#include "proto.h"
29 28
diff --git a/fs/smbfs/getopt.c b/drivers/staging/smbfs/getopt.c
index 7ae0f5273ab1..7ae0f5273ab1 100644
--- a/fs/smbfs/getopt.c
+++ b/drivers/staging/smbfs/getopt.c
diff --git a/fs/smbfs/getopt.h b/drivers/staging/smbfs/getopt.h
index 146219ac7c46..146219ac7c46 100644
--- a/fs/smbfs/getopt.h
+++ b/drivers/staging/smbfs/getopt.h
diff --git a/fs/smbfs/inode.c b/drivers/staging/smbfs/inode.c
index 450c91941988..9287599ddb50 100644
--- a/fs/smbfs/inode.c
+++ b/drivers/staging/smbfs/inode.c
@@ -26,13 +26,13 @@
26#include <linux/vfs.h> 26#include <linux/vfs.h>
27#include <linux/highuid.h> 27#include <linux/highuid.h>
28#include <linux/sched.h> 28#include <linux/sched.h>
29#include <linux/smb_fs.h>
30#include <linux/smbno.h>
31#include <linux/smb_mount.h>
32 29
33#include <asm/system.h> 30#include <asm/system.h>
34#include <asm/uaccess.h> 31#include <asm/uaccess.h>
35 32
33#include "smb_fs.h"
34#include "smbno.h"
35#include "smb_mount.h"
36#include "smb_debug.h" 36#include "smb_debug.h"
37#include "getopt.h" 37#include "getopt.h"
38#include "proto.h" 38#include "proto.h"
@@ -504,7 +504,7 @@ static int smb_fill_super(struct super_block *sb, void *raw_data, int silent)
504 if (warn_count < 5) { 504 if (warn_count < 5) {
505 warn_count++; 505 warn_count++;
506 printk(KERN_EMERG "smbfs is deprecated and will be removed" 506 printk(KERN_EMERG "smbfs is deprecated and will be removed"
507 " from the 2.6.27 kernel. Please migrate to cifs\n"); 507 " from the 2.6.37 kernel. Please migrate to cifs\n");
508 } 508 }
509 509
510 if (!raw_data) 510 if (!raw_data)
diff --git a/fs/smbfs/ioctl.c b/drivers/staging/smbfs/ioctl.c
index 07215312ad39..2da169267470 100644
--- a/fs/smbfs/ioctl.c
+++ b/drivers/staging/smbfs/ioctl.c
@@ -16,11 +16,10 @@
16#include <linux/smp_lock.h> 16#include <linux/smp_lock.h>
17#include <linux/net.h> 17#include <linux/net.h>
18 18
19#include <linux/smb_fs.h>
20#include <linux/smb_mount.h>
21
22#include <asm/uaccess.h> 19#include <asm/uaccess.h>
23 20
21#include "smb_fs.h"
22#include "smb_mount.h"
24#include "proto.h" 23#include "proto.h"
25 24
26long 25long
diff --git a/fs/smbfs/proc.c b/drivers/staging/smbfs/proc.c
index 71c29b6670b4..2fb079c37f25 100644
--- a/fs/smbfs/proc.c
+++ b/drivers/staging/smbfs/proc.c
@@ -20,15 +20,14 @@
20#include <linux/smp_lock.h> 20#include <linux/smp_lock.h>
21#include <linux/net.h> 21#include <linux/net.h>
22#include <linux/vfs.h> 22#include <linux/vfs.h>
23#include <linux/smb_fs.h>
24#include <linux/smbno.h>
25#include <linux/smb_mount.h>
26
27#include <net/sock.h> 23#include <net/sock.h>
28 24
29#include <asm/string.h> 25#include <asm/string.h>
30#include <asm/div64.h> 26#include <asm/div64.h>
31 27
28#include "smb_fs.h"
29#include "smbno.h"
30#include "smb_mount.h"
32#include "smb_debug.h" 31#include "smb_debug.h"
33#include "proto.h" 32#include "proto.h"
34#include "request.h" 33#include "request.h"
diff --git a/fs/smbfs/proto.h b/drivers/staging/smbfs/proto.h
index 05939a6f43e6..05939a6f43e6 100644
--- a/fs/smbfs/proto.h
+++ b/drivers/staging/smbfs/proto.h
diff --git a/fs/smbfs/request.c b/drivers/staging/smbfs/request.c
index 45f45933e862..3e7716864306 100644
--- a/fs/smbfs/request.c
+++ b/drivers/staging/smbfs/request.c
@@ -13,10 +13,9 @@
13#include <linux/net.h> 13#include <linux/net.h>
14#include <linux/sched.h> 14#include <linux/sched.h>
15 15
16#include <linux/smb_fs.h> 16#include "smb_fs.h"
17#include <linux/smbno.h> 17#include "smbno.h"
18#include <linux/smb_mount.h> 18#include "smb_mount.h"
19
20#include "smb_debug.h" 19#include "smb_debug.h"
21#include "request.h" 20#include "request.h"
22#include "proto.h" 21#include "proto.h"
diff --git a/fs/smbfs/request.h b/drivers/staging/smbfs/request.h
index efb21451e7c9..efb21451e7c9 100644
--- a/fs/smbfs/request.h
+++ b/drivers/staging/smbfs/request.h
diff --git a/include/linux/smb.h b/drivers/staging/smbfs/smb.h
index 82fefddc5987..82fefddc5987 100644
--- a/include/linux/smb.h
+++ b/drivers/staging/smbfs/smb.h
diff --git a/fs/smbfs/smb_debug.h b/drivers/staging/smbfs/smb_debug.h
index fc4b1a5dd755..fc4b1a5dd755 100644
--- a/fs/smbfs/smb_debug.h
+++ b/drivers/staging/smbfs/smb_debug.h
diff --git a/include/linux/smb_fs.h b/drivers/staging/smbfs/smb_fs.h
index 923cd8a247b1..20a05c188eb9 100644
--- a/include/linux/smb_fs.h
+++ b/drivers/staging/smbfs/smb_fs.h
@@ -9,7 +9,7 @@
9#ifndef _LINUX_SMB_FS_H 9#ifndef _LINUX_SMB_FS_H
10#define _LINUX_SMB_FS_H 10#define _LINUX_SMB_FS_H
11 11
12#include <linux/smb.h> 12#include "smb.h"
13 13
14/* 14/*
15 * ioctl commands 15 * ioctl commands
@@ -22,13 +22,13 @@
22 22
23 23
24#ifdef __KERNEL__ 24#ifdef __KERNEL__
25#include <linux/smb_fs_i.h> 25#include "smb_fs_i.h"
26#include <linux/smb_fs_sb.h> 26#include "smb_fs_sb.h"
27#include "smb_mount.h"
27 28
28#include <linux/fs.h> 29#include <linux/fs.h>
29#include <linux/pagemap.h> 30#include <linux/pagemap.h>
30#include <linux/vmalloc.h> 31#include <linux/vmalloc.h>
31#include <linux/smb_mount.h>
32#include <linux/jiffies.h> 32#include <linux/jiffies.h>
33#include <asm/unaligned.h> 33#include <asm/unaligned.h>
34 34
diff --git a/include/linux/smb_fs_i.h b/drivers/staging/smbfs/smb_fs_i.h
index 8ccf4eca2c3d..8ccf4eca2c3d 100644
--- a/include/linux/smb_fs_i.h
+++ b/drivers/staging/smbfs/smb_fs_i.h
diff --git a/include/linux/smb_fs_sb.h b/drivers/staging/smbfs/smb_fs_sb.h
index bb947dd1fba9..ca058afda900 100644
--- a/include/linux/smb_fs_sb.h
+++ b/drivers/staging/smbfs/smb_fs_sb.h
@@ -11,7 +11,7 @@
11 11
12#include <linux/types.h> 12#include <linux/types.h>
13#include <linux/backing-dev.h> 13#include <linux/backing-dev.h>
14#include <linux/smb.h> 14#include "smb.h"
15 15
16/* 16/*
17 * Upper limit on the total number of active smb_request structs. 17 * Upper limit on the total number of active smb_request structs.
diff --git a/include/linux/smb_mount.h b/drivers/staging/smbfs/smb_mount.h
index d10f00cb5703..d10f00cb5703 100644
--- a/include/linux/smb_mount.h
+++ b/drivers/staging/smbfs/smb_mount.h
diff --git a/Documentation/filesystems/smbfs.txt b/drivers/staging/smbfs/smbfs.txt
index 194fb0decd2c..194fb0decd2c 100644
--- a/Documentation/filesystems/smbfs.txt
+++ b/drivers/staging/smbfs/smbfs.txt
diff --git a/fs/smbfs/smbiod.c b/drivers/staging/smbfs/smbiod.c
index 0e39a924f10a..ec998920f8d9 100644
--- a/fs/smbfs/smbiod.c
+++ b/drivers/staging/smbfs/smbiod.c
@@ -20,13 +20,12 @@
20#include <linux/kthread.h> 20#include <linux/kthread.h>
21#include <net/ip.h> 21#include <net/ip.h>
22 22
23#include <linux/smb_fs.h>
24#include <linux/smbno.h>
25#include <linux/smb_mount.h>
26
27#include <asm/system.h> 23#include <asm/system.h>
28#include <asm/uaccess.h> 24#include <asm/uaccess.h>
29 25
26#include "smb_fs.h"
27#include "smbno.h"
28#include "smb_mount.h"
30#include "smb_debug.h" 29#include "smb_debug.h"
31#include "request.h" 30#include "request.h"
32#include "proto.h" 31#include "proto.h"
diff --git a/include/linux/smbno.h b/drivers/staging/smbfs/smbno.h
index f99e02d9ffe2..f99e02d9ffe2 100644
--- a/include/linux/smbno.h
+++ b/drivers/staging/smbfs/smbno.h
diff --git a/fs/smbfs/sock.c b/drivers/staging/smbfs/sock.c
index e37fe4deebd0..9e264090e611 100644
--- a/fs/smbfs/sock.c
+++ b/drivers/staging/smbfs/sock.c
@@ -22,13 +22,12 @@
22#include <net/tcp_states.h> 22#include <net/tcp_states.h>
23#include <net/ip.h> 23#include <net/ip.h>
24 24
25#include <linux/smb_fs.h>
26#include <linux/smb.h>
27#include <linux/smbno.h>
28
29#include <asm/uaccess.h> 25#include <asm/uaccess.h>
30#include <asm/ioctls.h> 26#include <asm/ioctls.h>
31 27
28#include "smb_fs.h"
29#include "smb.h"
30#include "smbno.h"
32#include "smb_debug.h" 31#include "smb_debug.h"
33#include "proto.h" 32#include "proto.h"
34#include "request.h" 33#include "request.h"
diff --git a/fs/smbfs/symlink.c b/drivers/staging/smbfs/symlink.c
index 00b2909bd469..632c4acd062d 100644
--- a/fs/smbfs/symlink.c
+++ b/drivers/staging/smbfs/symlink.c
@@ -19,9 +19,8 @@
19#include <asm/uaccess.h> 19#include <asm/uaccess.h>
20#include <asm/system.h> 20#include <asm/system.h>
21 21
22#include <linux/smbno.h> 22#include "smbno.h"
23#include <linux/smb_fs.h> 23#include "smb_fs.h"
24
25#include "smb_debug.h" 24#include "smb_debug.h"
26#include "proto.h" 25#include "proto.h"
27 26
diff --git a/fs/Kconfig b/fs/Kconfig
index 30da8ee16a96..25ce2dc1c6d4 100644
--- a/fs/Kconfig
+++ b/fs/Kconfig
@@ -233,7 +233,6 @@ config NFS_COMMON
233 default y 233 default y
234 234
235source "net/sunrpc/Kconfig" 235source "net/sunrpc/Kconfig"
236source "fs/smbfs/Kconfig"
237source "fs/ceph/Kconfig" 236source "fs/ceph/Kconfig"
238source "fs/cifs/Kconfig" 237source "fs/cifs/Kconfig"
239source "fs/ncpfs/Kconfig" 238source "fs/ncpfs/Kconfig"
diff --git a/fs/Makefile b/fs/Makefile
index e571feddd7b7..9284c74c2db9 100644
--- a/fs/Makefile
+++ b/fs/Makefile
@@ -91,7 +91,6 @@ obj-$(CONFIG_NFSD) += nfsd/
91obj-$(CONFIG_LOCKD) += lockd/ 91obj-$(CONFIG_LOCKD) += lockd/
92obj-$(CONFIG_NLS) += nls/ 92obj-$(CONFIG_NLS) += nls/
93obj-$(CONFIG_SYSV_FS) += sysv/ 93obj-$(CONFIG_SYSV_FS) += sysv/
94obj-$(CONFIG_SMB_FS) += smbfs/
95obj-$(CONFIG_CIFS) += cifs/ 94obj-$(CONFIG_CIFS) += cifs/
96obj-$(CONFIG_NCP_FS) += ncpfs/ 95obj-$(CONFIG_NCP_FS) += ncpfs/
97obj-$(CONFIG_HPFS_FS) += hpfs/ 96obj-$(CONFIG_HPFS_FS) += hpfs/
diff --git a/fs/compat.c b/fs/compat.c
index 718c7062aec1..b42f29a44edb 100644
--- a/fs/compat.c
+++ b/fs/compat.c
@@ -29,8 +29,6 @@
29#include <linux/vfs.h> 29#include <linux/vfs.h>
30#include <linux/ioctl.h> 30#include <linux/ioctl.h>
31#include <linux/init.h> 31#include <linux/init.h>
32#include <linux/smb.h>
33#include <linux/smb_mount.h>
34#include <linux/ncp_mount.h> 32#include <linux/ncp_mount.h>
35#include <linux/nfs4_mount.h> 33#include <linux/nfs4_mount.h>
36#include <linux/syscalls.h> 34#include <linux/syscalls.h>
@@ -745,30 +743,6 @@ static void *do_ncp_super_data_conv(void *raw_data)
745 return raw_data; 743 return raw_data;
746} 744}
747 745
748struct compat_smb_mount_data {
749 compat_int_t version;
750 __compat_uid_t mounted_uid;
751 __compat_uid_t uid;
752 __compat_gid_t gid;
753 compat_mode_t file_mode;
754 compat_mode_t dir_mode;
755};
756
757static void *do_smb_super_data_conv(void *raw_data)
758{
759 struct smb_mount_data *s = raw_data;
760 struct compat_smb_mount_data *c_s = raw_data;
761
762 if (c_s->version != SMB_MOUNT_OLDVERSION)
763 goto out;
764 s->dir_mode = c_s->dir_mode;
765 s->file_mode = c_s->file_mode;
766 s->gid = c_s->gid;
767 s->uid = c_s->uid;
768 s->mounted_uid = c_s->mounted_uid;
769 out:
770 return raw_data;
771}
772 746
773struct compat_nfs_string { 747struct compat_nfs_string {
774 compat_uint_t len; 748 compat_uint_t len;
@@ -835,7 +809,6 @@ static int do_nfs4_super_data_conv(void *raw_data)
835 return 0; 809 return 0;
836} 810}
837 811
838#define SMBFS_NAME "smbfs"
839#define NCPFS_NAME "ncpfs" 812#define NCPFS_NAME "ncpfs"
840#define NFS4_NAME "nfs4" 813#define NFS4_NAME "nfs4"
841 814
@@ -870,9 +843,7 @@ asmlinkage long compat_sys_mount(const char __user * dev_name,
870 retval = -EINVAL; 843 retval = -EINVAL;
871 844
872 if (kernel_type && data_page) { 845 if (kernel_type && data_page) {
873 if (!strcmp(kernel_type, SMBFS_NAME)) { 846 if (!strcmp(kernel_type, NCPFS_NAME)) {
874 do_smb_super_data_conv((void *)data_page);
875 } else if (!strcmp(kernel_type, NCPFS_NAME)) {
876 do_ncp_super_data_conv((void *)data_page); 847 do_ncp_super_data_conv((void *)data_page);
877 } else if (!strcmp(kernel_type, NFS4_NAME)) { 848 } else if (!strcmp(kernel_type, NFS4_NAME)) {
878 if (do_nfs4_super_data_conv((void *) data_page)) 849 if (do_nfs4_super_data_conv((void *) data_page))
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
561static 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 */
1266COMPATIBLE_IOCTL(RAW_SETBIND) 1246COMPATIBLE_IOCTL(RAW_SETBIND)
1267COMPATIBLE_IOCTL(RAW_GETBIND) 1247COMPATIBLE_IOCTL(RAW_GETBIND)
1268/* SMB ioctls which do not need any translations */
1269COMPATIBLE_IOCTL(SMB_IOC_NEWCONN)
1270/* Watchdog */ 1248/* Watchdog */
1271COMPATIBLE_IOCTL(WDIOC_GETSUPPORT) 1249COMPATIBLE_IOCTL(WDIOC_GETSUPPORT)
1272COMPATIBLE_IOCTL(WDIOC_GETSTATUS) 1250COMPATIBLE_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:
diff --git a/include/linux/Kbuild b/include/linux/Kbuild
index 626b629429ff..98d520d371ed 100644
--- a/include/linux/Kbuild
+++ b/include/linux/Kbuild
@@ -326,10 +326,6 @@ header-y += serio.h
326header-y += shm.h 326header-y += shm.h
327header-y += signal.h 327header-y += signal.h
328header-y += signalfd.h 328header-y += signalfd.h
329header-y += smb.h
330header-y += smb_fs.h
331header-y += smb_mount.h
332header-y += smbno.h
333header-y += snmp.h 329header-y += snmp.h
334header-y += socket.h 330header-y += socket.h
335header-y += sockios.h 331header-y += sockios.h