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>
This commit is contained in:

committed by
Linus Torvalds

parent
0d54b217a2
commit
b87221de6a
@@ -285,7 +285,7 @@ static int init_inodecache(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct super_operations sockfs_ops = {
|
||||
static const struct super_operations sockfs_ops = {
|
||||
.alloc_inode = sock_alloc_inode,
|
||||
.destroy_inode =sock_destroy_inode,
|
||||
.statfs = simple_statfs,
|
||||
|
@@ -930,7 +930,7 @@ void rpc_remove_cache_dir(struct dentry *dentry)
|
||||
/*
|
||||
* populate the filesystem
|
||||
*/
|
||||
static struct super_operations s_ops = {
|
||||
static const struct super_operations s_ops = {
|
||||
.alloc_inode = rpc_alloc_inode,
|
||||
.destroy_inode = rpc_destroy_inode,
|
||||
.statfs = simple_statfs,
|
||||
|
Reference in New Issue
Block a user