aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/sunrpc/clnt.h4
-rw-r--r--net/sunrpc/clnt.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h
index db6970ced9bc..4a46ffd73a04 100644
--- a/include/linux/sunrpc/clnt.h
+++ b/include/linux/sunrpc/clnt.h
@@ -70,12 +70,12 @@ struct rpc_clnt {
70 */ 70 */
71#define RPC_MAXVERSION 4 71#define RPC_MAXVERSION 4
72struct rpc_program { 72struct rpc_program {
73 char * name; /* protocol name */ 73 const char * name; /* protocol name */
74 u32 number; /* program number */ 74 u32 number; /* program number */
75 unsigned int nrvers; /* number of versions */ 75 unsigned int nrvers; /* number of versions */
76 struct rpc_version ** version; /* version array */ 76 struct rpc_version ** version; /* version array */
77 struct rpc_stat * stats; /* statistics */ 77 struct rpc_stat * stats; /* statistics */
78 char * pipe_dir_name; /* path to rpc_pipefs dir */ 78 const char * pipe_dir_name; /* path to rpc_pipefs dir */
79}; 79};
80 80
81struct rpc_version { 81struct rpc_version {
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index e9b22e8e16c7..1b2317fa4043 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -118,7 +118,8 @@ static void rpc_clnt_remove_pipedir(struct rpc_clnt *clnt)
118} 118}
119 119
120static struct dentry *rpc_setup_pipedir_sb(struct super_block *sb, 120static struct dentry *rpc_setup_pipedir_sb(struct super_block *sb,
121 struct rpc_clnt *clnt, char *dir_name) 121 struct rpc_clnt *clnt,
122 const char *dir_name)
122{ 123{
123 static uint32_t clntid; 124 static uint32_t clntid;
124 char name[15]; 125 char name[15];
@@ -151,7 +152,7 @@ static struct dentry *rpc_setup_pipedir_sb(struct super_block *sb,
151} 152}
152 153
153static int 154static int
154rpc_setup_pipedir(struct rpc_clnt *clnt, char *dir_name) 155rpc_setup_pipedir(struct rpc_clnt *clnt, const char *dir_name)
155{ 156{
156 struct super_block *pipefs_sb; 157 struct super_block *pipefs_sb;
157 struct dentry *dentry; 158 struct dentry *dentry;