diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-20 13:53:56 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-31 19:28:20 -0500 |
commit | a613fa168afc19179a7547fbba45644c5b6912bf (patch) | |
tree | 02db1b9ca905ff49d9811175607757e3a885325f /include | |
parent | 080b794ce5ad318ce34c52abaedf1bc6788a5abb (diff) |
SUNRPC: constify the rpc_program
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/lockd/lockd.h | 2 | ||||
-rw-r--r-- | include/linux/lockd/xdr4.h | 2 | ||||
-rw-r--r-- | include/linux/nfs_xdr.h | 10 | ||||
-rw-r--r-- | include/linux/sunrpc/clnt.h | 8 | ||||
-rw-r--r-- | include/linux/sunrpc/stats.h | 6 |
5 files changed, 14 insertions, 14 deletions
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index 88a114fce477..8949167a148d 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h | |||
@@ -188,7 +188,7 @@ struct nlm_block { | |||
188 | /* | 188 | /* |
189 | * Global variables | 189 | * Global variables |
190 | */ | 190 | */ |
191 | extern struct rpc_program nlm_program; | 191 | extern const struct rpc_program nlm_program; |
192 | extern struct svc_procedure nlmsvc_procedures[]; | 192 | extern struct svc_procedure nlmsvc_procedures[]; |
193 | #ifdef CONFIG_LOCKD_V4 | 193 | #ifdef CONFIG_LOCKD_V4 |
194 | extern struct svc_procedure nlmsvc_procedures4[]; | 194 | extern struct svc_procedure nlmsvc_procedures4[]; |
diff --git a/include/linux/lockd/xdr4.h b/include/linux/lockd/xdr4.h index 7353821341ed..e58c88b52ce1 100644 --- a/include/linux/lockd/xdr4.h +++ b/include/linux/lockd/xdr4.h | |||
@@ -42,6 +42,6 @@ int nlmclt_encode_lockargs(struct rpc_rqst *, u32 *, struct nlm_args *); | |||
42 | int nlmclt_encode_cancargs(struct rpc_rqst *, u32 *, struct nlm_args *); | 42 | int nlmclt_encode_cancargs(struct rpc_rqst *, u32 *, struct nlm_args *); |
43 | int nlmclt_encode_unlockargs(struct rpc_rqst *, u32 *, struct nlm_args *); | 43 | int nlmclt_encode_unlockargs(struct rpc_rqst *, u32 *, struct nlm_args *); |
44 | */ | 44 | */ |
45 | extern struct rpc_version nlm_version4; | 45 | extern const struct rpc_version nlm_version4; |
46 | 46 | ||
47 | #endif /* LOCKD_XDR4_H */ | 47 | #endif /* LOCKD_XDR4_H */ |
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index f5188e10ea0e..144419a9cbd3 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h | |||
@@ -1274,11 +1274,11 @@ struct nfs_rpc_ops { | |||
1274 | extern const struct nfs_rpc_ops nfs_v2_clientops; | 1274 | extern const struct nfs_rpc_ops nfs_v2_clientops; |
1275 | extern const struct nfs_rpc_ops nfs_v3_clientops; | 1275 | extern const struct nfs_rpc_ops nfs_v3_clientops; |
1276 | extern const struct nfs_rpc_ops nfs_v4_clientops; | 1276 | extern const struct nfs_rpc_ops nfs_v4_clientops; |
1277 | extern struct rpc_version nfs_version2; | 1277 | extern const struct rpc_version nfs_version2; |
1278 | extern struct rpc_version nfs_version3; | 1278 | extern const struct rpc_version nfs_version3; |
1279 | extern struct rpc_version nfs_version4; | 1279 | extern const struct rpc_version nfs_version4; |
1280 | 1280 | ||
1281 | extern struct rpc_version nfsacl_version3; | 1281 | extern const struct rpc_version nfsacl_version3; |
1282 | extern struct rpc_program nfsacl_program; | 1282 | extern const struct rpc_program nfsacl_program; |
1283 | 1283 | ||
1284 | #endif | 1284 | #endif |
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h index 4a46ffd73a04..a4c62e95c720 100644 --- a/include/linux/sunrpc/clnt.h +++ b/include/linux/sunrpc/clnt.h | |||
@@ -61,7 +61,7 @@ struct rpc_clnt { | |||
61 | struct rpc_clnt * cl_parent; /* Points to parent of clones */ | 61 | struct rpc_clnt * cl_parent; /* Points to parent of clones */ |
62 | struct rpc_rtt cl_rtt_default; | 62 | struct rpc_rtt cl_rtt_default; |
63 | struct rpc_timeout cl_timeout_default; | 63 | struct rpc_timeout cl_timeout_default; |
64 | struct rpc_program * cl_program; | 64 | const struct rpc_program *cl_program; |
65 | char *cl_principal; /* target to authenticate to */ | 65 | char *cl_principal; /* target to authenticate to */ |
66 | }; | 66 | }; |
67 | 67 | ||
@@ -73,7 +73,7 @@ struct rpc_program { | |||
73 | const 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 | const struct rpc_version ** version; /* version array */ |
77 | struct rpc_stat * stats; /* statistics */ | 77 | struct rpc_stat * stats; /* statistics */ |
78 | const char * pipe_dir_name; /* path to rpc_pipefs dir */ | 78 | const char * pipe_dir_name; /* path to rpc_pipefs dir */ |
79 | }; | 79 | }; |
@@ -109,7 +109,7 @@ struct rpc_create_args { | |||
109 | struct sockaddr *saddress; | 109 | struct sockaddr *saddress; |
110 | const struct rpc_timeout *timeout; | 110 | const struct rpc_timeout *timeout; |
111 | const char *servername; | 111 | const char *servername; |
112 | struct rpc_program *program; | 112 | const struct rpc_program *program; |
113 | u32 prognumber; /* overrides program->number */ | 113 | u32 prognumber; /* overrides program->number */ |
114 | u32 version; | 114 | u32 version; |
115 | rpc_authflavor_t authflavor; | 115 | rpc_authflavor_t authflavor; |
@@ -128,7 +128,7 @@ struct rpc_create_args { | |||
128 | 128 | ||
129 | struct rpc_clnt *rpc_create(struct rpc_create_args *args); | 129 | struct rpc_clnt *rpc_create(struct rpc_create_args *args); |
130 | struct rpc_clnt *rpc_bind_new_program(struct rpc_clnt *, | 130 | struct rpc_clnt *rpc_bind_new_program(struct rpc_clnt *, |
131 | struct rpc_program *, u32); | 131 | const struct rpc_program *, u32); |
132 | void rpc_task_reset_client(struct rpc_task *task, struct rpc_clnt *clnt); | 132 | void rpc_task_reset_client(struct rpc_task *task, struct rpc_clnt *clnt); |
133 | struct rpc_clnt *rpc_clone_client(struct rpc_clnt *); | 133 | struct rpc_clnt *rpc_clone_client(struct rpc_clnt *); |
134 | void rpc_shutdown_client(struct rpc_clnt *); | 134 | void rpc_shutdown_client(struct rpc_clnt *); |
diff --git a/include/linux/sunrpc/stats.h b/include/linux/sunrpc/stats.h index 76f3f7cc6e33..edc64219f92b 100644 --- a/include/linux/sunrpc/stats.h +++ b/include/linux/sunrpc/stats.h | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <linux/proc_fs.h> | 12 | #include <linux/proc_fs.h> |
13 | 13 | ||
14 | struct rpc_stat { | 14 | struct rpc_stat { |
15 | struct rpc_program * program; | 15 | const struct rpc_program *program; |
16 | 16 | ||
17 | unsigned int netcnt, | 17 | unsigned int netcnt, |
18 | netudpcnt, | 18 | netudpcnt, |
@@ -60,7 +60,7 @@ void rpc_modcount(struct inode *, int); | |||
60 | #ifdef CONFIG_PROC_FS | 60 | #ifdef CONFIG_PROC_FS |
61 | struct proc_dir_entry * rpc_proc_register(struct net *,struct rpc_stat *); | 61 | struct proc_dir_entry * rpc_proc_register(struct net *,struct rpc_stat *); |
62 | void rpc_proc_unregister(struct net *,const char *); | 62 | void rpc_proc_unregister(struct net *,const char *); |
63 | void rpc_proc_zero(struct rpc_program *); | 63 | void rpc_proc_zero(const struct rpc_program *); |
64 | struct proc_dir_entry * svc_proc_register(struct net *, struct svc_stat *, | 64 | struct proc_dir_entry * svc_proc_register(struct net *, struct svc_stat *, |
65 | const struct file_operations *); | 65 | const struct file_operations *); |
66 | void svc_proc_unregister(struct net *, const char *); | 66 | void svc_proc_unregister(struct net *, const char *); |
@@ -71,7 +71,7 @@ void svc_seq_show(struct seq_file *, | |||
71 | 71 | ||
72 | static inline struct proc_dir_entry *rpc_proc_register(struct net *net, struct rpc_stat *s) { return NULL; } | 72 | static inline struct proc_dir_entry *rpc_proc_register(struct net *net, struct rpc_stat *s) { return NULL; } |
73 | static inline void rpc_proc_unregister(struct net *net, const char *p) {} | 73 | static inline void rpc_proc_unregister(struct net *net, const char *p) {} |
74 | static inline void rpc_proc_zero(struct rpc_program *p) {} | 74 | static inline void rpc_proc_zero(const struct rpc_program *p) {} |
75 | 75 | ||
76 | static inline struct proc_dir_entry *svc_proc_register(struct net *net, struct svc_stat *s, | 76 | static inline struct proc_dir_entry *svc_proc_register(struct net *net, struct svc_stat *s, |
77 | const struct file_operations *f) { return NULL; } | 77 | const struct file_operations *f) { return NULL; } |