aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/rpc_pipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/rpc_pipe.c')
-rw-r--r--net/sunrpc/rpc_pipe.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index 9ced0628d69c..f6f60f625e3f 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -125,7 +125,7 @@ static void
125rpc_close_pipes(struct inode *inode) 125rpc_close_pipes(struct inode *inode)
126{ 126{
127 struct rpc_inode *rpci = RPC_I(inode); 127 struct rpc_inode *rpci = RPC_I(inode);
128 struct rpc_pipe_ops *ops; 128 const struct rpc_pipe_ops *ops;
129 int need_release; 129 int need_release;
130 130
131 mutex_lock(&inode->i_mutex); 131 mutex_lock(&inode->i_mutex);
@@ -776,8 +776,9 @@ rpc_rmdir(struct dentry *dentry)
776 * The @private argument passed here will be available to all these methods 776 * The @private argument passed here will be available to all these methods
777 * from the file pointer, via RPC_I(file->f_dentry->d_inode)->private. 777 * from the file pointer, via RPC_I(file->f_dentry->d_inode)->private.
778 */ 778 */
779struct dentry * 779struct dentry *rpc_mkpipe(struct dentry *parent, const char *name,
780rpc_mkpipe(struct dentry *parent, const char *name, void *private, struct rpc_pipe_ops *ops, int flags) 780 void *private, const struct rpc_pipe_ops *ops,
781 int flags)
781{ 782{
782 struct dentry *dentry; 783 struct dentry *dentry;
783 struct inode *dir, *inode; 784 struct inode *dir, *inode;