diff options
author | Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu> | 2007-02-12 03:55:41 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 12:48:47 -0500 |
commit | ee9b6d61a2a43c5952eb43283f8db284a4e70b8a (patch) | |
tree | afb0340e79d3e9d14f39df20e165ce2efe941b18 /fs/ufs | |
parent | c5ef1c42c51b1b5b4a401a6517bdda30933ddbaf (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.c | 4 |
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 | ||
216 | static struct super_operations ufs_super_ops; | 216 | static const struct super_operations ufs_super_ops; |
217 | 217 | ||
218 | static char error_buf[1024]; | 218 | static 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); | |||
1264 | static ssize_t ufs_quota_write(struct super_block *, int, const char *, size_t, loff_t); | 1264 | static ssize_t ufs_quota_write(struct super_block *, int, const char *, size_t, loff_t); |
1265 | #endif | 1265 | #endif |
1266 | 1266 | ||
1267 | static struct super_operations ufs_super_ops = { | 1267 | static 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, |