diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2009-09-21 20:01:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-22 10:17:24 -0400 |
commit | b87221de6a4934eda856475a0065688d12973a04 (patch) | |
tree | 6bcf0628e106c4833538f4c23d710fbbe3d7609a /drivers | |
parent | 0d54b217a247f39605361f867fefbb9e099a5432 (diff) |
const: mark remaining super_operations const
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/isdn/capi/capifs.c | 2 | ||||
-rw-r--r-- | drivers/misc/ibmasm/ibmasmfs.c | 2 | ||||
-rw-r--r-- | drivers/oprofile/oprofilefs.c | 2 | ||||
-rw-r--r-- | drivers/usb/core/inode.c | 3 | ||||
-rw-r--r-- | drivers/usb/gadget/inode.c | 2 |
5 files changed, 5 insertions, 6 deletions
diff --git a/drivers/isdn/capi/capifs.c b/drivers/isdn/capi/capifs.c index bff72d81f263..9f8f67b6c07f 100644 --- a/drivers/isdn/capi/capifs.c +++ b/drivers/isdn/capi/capifs.c | |||
@@ -89,7 +89,7 @@ static int capifs_remount(struct super_block *s, int *flags, char *data) | |||
89 | return 0; | 89 | return 0; |
90 | } | 90 | } |
91 | 91 | ||
92 | static struct super_operations capifs_sops = | 92 | static const struct super_operations capifs_sops = |
93 | { | 93 | { |
94 | .statfs = simple_statfs, | 94 | .statfs = simple_statfs, |
95 | .remount_fs = capifs_remount, | 95 | .remount_fs = capifs_remount, |
diff --git a/drivers/misc/ibmasm/ibmasmfs.c b/drivers/misc/ibmasm/ibmasmfs.c index de966a6fb7e6..aecf40ecb3a4 100644 --- a/drivers/misc/ibmasm/ibmasmfs.c +++ b/drivers/misc/ibmasm/ibmasmfs.c | |||
@@ -97,7 +97,7 @@ static int ibmasmfs_get_super(struct file_system_type *fst, | |||
97 | return get_sb_single(fst, flags, data, ibmasmfs_fill_super, mnt); | 97 | return get_sb_single(fst, flags, data, ibmasmfs_fill_super, mnt); |
98 | } | 98 | } |
99 | 99 | ||
100 | static struct super_operations ibmasmfs_s_ops = { | 100 | static const struct super_operations ibmasmfs_s_ops = { |
101 | .statfs = simple_statfs, | 101 | .statfs = simple_statfs, |
102 | .drop_inode = generic_delete_inode, | 102 | .drop_inode = generic_delete_inode, |
103 | }; | 103 | }; |
diff --git a/drivers/oprofile/oprofilefs.c b/drivers/oprofile/oprofilefs.c index b7e4cee24269..2766a6d3c2e9 100644 --- a/drivers/oprofile/oprofilefs.c +++ b/drivers/oprofile/oprofilefs.c | |||
@@ -35,7 +35,7 @@ static struct inode *oprofilefs_get_inode(struct super_block *sb, int mode) | |||
35 | } | 35 | } |
36 | 36 | ||
37 | 37 | ||
38 | static struct super_operations s_ops = { | 38 | static const struct super_operations s_ops = { |
39 | .statfs = simple_statfs, | 39 | .statfs = simple_statfs, |
40 | .drop_inode = generic_delete_inode, | 40 | .drop_inode = generic_delete_inode, |
41 | }; | 41 | }; |
diff --git a/drivers/usb/core/inode.c b/drivers/usb/core/inode.c index ffe75e83787c..97b40ce133f0 100644 --- a/drivers/usb/core/inode.c +++ b/drivers/usb/core/inode.c | |||
@@ -48,7 +48,6 @@ | |||
48 | #define USBFS_DEFAULT_BUSMODE (S_IXUGO | S_IRUGO) | 48 | #define USBFS_DEFAULT_BUSMODE (S_IXUGO | S_IRUGO) |
49 | #define USBFS_DEFAULT_LISTMODE S_IRUGO | 49 | #define USBFS_DEFAULT_LISTMODE S_IRUGO |
50 | 50 | ||
51 | static struct super_operations usbfs_ops; | ||
52 | static const struct file_operations default_file_operations; | 51 | static const struct file_operations default_file_operations; |
53 | static struct vfsmount *usbfs_mount; | 52 | static struct vfsmount *usbfs_mount; |
54 | static int usbfs_mount_count; /* = 0 */ | 53 | static int usbfs_mount_count; /* = 0 */ |
@@ -449,7 +448,7 @@ static const struct file_operations default_file_operations = { | |||
449 | .llseek = default_file_lseek, | 448 | .llseek = default_file_lseek, |
450 | }; | 449 | }; |
451 | 450 | ||
452 | static struct super_operations usbfs_ops = { | 451 | static const struct super_operations usbfs_ops = { |
453 | .statfs = simple_statfs, | 452 | .statfs = simple_statfs, |
454 | .drop_inode = generic_delete_inode, | 453 | .drop_inode = generic_delete_inode, |
455 | .remount_fs = remount, | 454 | .remount_fs = remount, |
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c index 7d33f50b5874..c44367fea185 100644 --- a/drivers/usb/gadget/inode.c +++ b/drivers/usb/gadget/inode.c | |||
@@ -2033,7 +2033,7 @@ gadgetfs_create_file (struct super_block *sb, char const *name, | |||
2033 | return inode; | 2033 | return inode; |
2034 | } | 2034 | } |
2035 | 2035 | ||
2036 | static struct super_operations gadget_fs_operations = { | 2036 | static const struct super_operations gadget_fs_operations = { |
2037 | .statfs = simple_statfs, | 2037 | .statfs = simple_statfs, |
2038 | .drop_inode = generic_delete_inode, | 2038 | .drop_inode = generic_delete_inode, |
2039 | }; | 2039 | }; |