aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ufs
diff options
context:
space:
mode:
authorJosef 'Jeff' Sipek <jsipek@cs.sunysb.edu>2007-02-12 03:55:41 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-12 12:48:47 -0500
commitee9b6d61a2a43c5952eb43283f8db284a4e70b8a (patch)
treeafb0340e79d3e9d14f39df20e165ce2efe941b18 /fs/ufs
parentc5ef1c42c51b1b5b4a401a6517bdda30933ddbaf (diff)
[PATCH] Mark struct super_operations const
This patch is inspired by Arjan's "Patch series to mark struct file_operations and struct inode_operations const". Compile tested with gcc & sparse. Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ufs')
-rw-r--r--fs/ufs/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ufs/super.c b/fs/ufs/super.c
index cf74548aa85..b5a6461ec66 100644
--- a/fs/ufs/super.c
+++ b/fs/ufs/super.c
@@ -213,7 +213,7 @@ static void ufs_print_cylinder_stuff(struct super_block *sb,
213# define ufs_print_cylinder_stuff(sb, cg) /**/ 213# define ufs_print_cylinder_stuff(sb, cg) /**/
214#endif /* CONFIG_UFS_DEBUG */ 214#endif /* CONFIG_UFS_DEBUG */
215 215
216static struct super_operations ufs_super_ops; 216static const struct super_operations ufs_super_ops;
217 217
218static char error_buf[1024]; 218static char error_buf[1024];
219 219
@@ -1264,7 +1264,7 @@ static ssize_t ufs_quota_read(struct super_block *, int, char *,size_t, loff_t);
1264static ssize_t ufs_quota_write(struct super_block *, int, const char *, size_t, loff_t); 1264static ssize_t ufs_quota_write(struct super_block *, int, const char *, size_t, loff_t);
1265#endif 1265#endif
1266 1266
1267static struct super_operations ufs_super_ops = { 1267static const struct super_operations ufs_super_ops = {
1268 .alloc_inode = ufs_alloc_inode, 1268 .alloc_inode = ufs_alloc_inode,
1269 .destroy_inode = ufs_destroy_inode, 1269 .destroy_inode = ufs_destroy_inode,
1270 .read_inode = ufs_read_inode, 1270 .read_inode = ufs_read_inode,