Skip to content

Commit

Permalink
rpc_pipe: rpc_dir_inode_operations can be static
Browse files Browse the repository at this point in the history
Hi Jeff,

FYI, there are new sparse warnings show up in

tree:   git://git.linux-nfs.org/projects/trondmy/linux-nfs.git nfs-for-next
head:   296afe1f58d55fd56ed85daaafafcfee39f59ece
commit: 76fa666 [2/5] rpc_pipe: set dentry operations at d_alloc time

>> net/sunrpc/rpc_pipe.c:496:31: sparse: symbol 'rpc_dir_inode_operations' was not declared. Should it be static?

Please consider folding the attached diff :-)

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Fengguang Wu authored and Trond Myklebust committed Jul 10, 2013
1 parent c755966 commit 4f8568c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sunrpc/rpc_pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ rpc_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
return NULL;
}

const struct inode_operations rpc_dir_inode_operations = {
static const struct inode_operations rpc_dir_inode_operations = {
.lookup = rpc_lookup,
};

Expand Down

0 comments on commit 4f8568c

Please sign in to comment.