diff options
author | Josef 'Jeff' Sipek | 2007-02-12 09:55:41 +0100 |
---|---|---|
committer | Linus Torvalds | 2007-02-12 18:48:47 +0100 |
commit | ee9b6d61a2a43c5952eb43283f8db284a4e70b8a (patch) | |
tree | afb0340e79d3e9d14f39df20e165ce2efe941b18 /fs/fuse/inode.c | |
parent | [PATCH] mark struct inode_operations const 3 (diff) | |
download | kernel-qcow2-linux-ee9b6d61a2a43c5952eb43283f8db284a4e70b8a.tar.gz kernel-qcow2-linux-ee9b6d61a2a43c5952eb43283f8db284a4e70b8a.tar.xz kernel-qcow2-linux-ee9b6d61a2a43c5952eb43283f8db284a4e70b8a.zip |
[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/fuse/inode.c')
-rw-r--r-- | fs/fuse/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 220255110d76..5ab8e50e7808 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -446,7 +446,7 @@ static struct inode *get_root_inode(struct super_block *sb, unsigned mode) return fuse_iget(sb, 1, 0, &attr); } -static struct super_operations fuse_super_operations = { +static const struct super_operations fuse_super_operations = { .alloc_inode = fuse_alloc_inode, .destroy_inode = fuse_destroy_inode, .read_inode = fuse_read_inode, |