mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-17 10:12:28 -04:00
SUNRPC: constify the rpc_program
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
080b794ce5
commit
a613fa168a
17 changed files with 54 additions and 54 deletions
|
|
@ -188,7 +188,7 @@ struct nlm_block {
|
|||
/*
|
||||
* Global variables
|
||||
*/
|
||||
extern struct rpc_program nlm_program;
|
||||
extern const struct rpc_program nlm_program;
|
||||
extern struct svc_procedure nlmsvc_procedures[];
|
||||
#ifdef CONFIG_LOCKD_V4
|
||||
extern struct svc_procedure nlmsvc_procedures4[];
|
||||
|
|
|
|||
|
|
@ -42,6 +42,6 @@ int nlmclt_encode_lockargs(struct rpc_rqst *, u32 *, struct nlm_args *);
|
|||
int nlmclt_encode_cancargs(struct rpc_rqst *, u32 *, struct nlm_args *);
|
||||
int nlmclt_encode_unlockargs(struct rpc_rqst *, u32 *, struct nlm_args *);
|
||||
*/
|
||||
extern struct rpc_version nlm_version4;
|
||||
extern const struct rpc_version nlm_version4;
|
||||
|
||||
#endif /* LOCKD_XDR4_H */
|
||||
|
|
|
|||
|
|
@ -1274,11 +1274,11 @@ struct nfs_rpc_ops {
|
|||
extern const struct nfs_rpc_ops nfs_v2_clientops;
|
||||
extern const struct nfs_rpc_ops nfs_v3_clientops;
|
||||
extern const struct nfs_rpc_ops nfs_v4_clientops;
|
||||
extern struct rpc_version nfs_version2;
|
||||
extern struct rpc_version nfs_version3;
|
||||
extern struct rpc_version nfs_version4;
|
||||
extern const struct rpc_version nfs_version2;
|
||||
extern const struct rpc_version nfs_version3;
|
||||
extern const struct rpc_version nfs_version4;
|
||||
|
||||
extern struct rpc_version nfsacl_version3;
|
||||
extern struct rpc_program nfsacl_program;
|
||||
extern const struct rpc_version nfsacl_version3;
|
||||
extern const struct rpc_program nfsacl_program;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ struct rpc_clnt {
|
|||
struct rpc_clnt * cl_parent; /* Points to parent of clones */
|
||||
struct rpc_rtt cl_rtt_default;
|
||||
struct rpc_timeout cl_timeout_default;
|
||||
struct rpc_program * cl_program;
|
||||
const struct rpc_program *cl_program;
|
||||
char *cl_principal; /* target to authenticate to */
|
||||
};
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ struct rpc_program {
|
|||
const char * name; /* protocol name */
|
||||
u32 number; /* program number */
|
||||
unsigned int nrvers; /* number of versions */
|
||||
struct rpc_version ** version; /* version array */
|
||||
const struct rpc_version ** version; /* version array */
|
||||
struct rpc_stat * stats; /* statistics */
|
||||
const char * pipe_dir_name; /* path to rpc_pipefs dir */
|
||||
};
|
||||
|
|
@ -109,7 +109,7 @@ struct rpc_create_args {
|
|||
struct sockaddr *saddress;
|
||||
const struct rpc_timeout *timeout;
|
||||
const char *servername;
|
||||
struct rpc_program *program;
|
||||
const struct rpc_program *program;
|
||||
u32 prognumber; /* overrides program->number */
|
||||
u32 version;
|
||||
rpc_authflavor_t authflavor;
|
||||
|
|
@ -128,7 +128,7 @@ struct rpc_create_args {
|
|||
|
||||
struct rpc_clnt *rpc_create(struct rpc_create_args *args);
|
||||
struct rpc_clnt *rpc_bind_new_program(struct rpc_clnt *,
|
||||
struct rpc_program *, u32);
|
||||
const struct rpc_program *, u32);
|
||||
void rpc_task_reset_client(struct rpc_task *task, struct rpc_clnt *clnt);
|
||||
struct rpc_clnt *rpc_clone_client(struct rpc_clnt *);
|
||||
void rpc_shutdown_client(struct rpc_clnt *);
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
#include <linux/proc_fs.h>
|
||||
|
||||
struct rpc_stat {
|
||||
struct rpc_program * program;
|
||||
const struct rpc_program *program;
|
||||
|
||||
unsigned int netcnt,
|
||||
netudpcnt,
|
||||
|
|
@ -60,7 +60,7 @@ void rpc_modcount(struct inode *, int);
|
|||
#ifdef CONFIG_PROC_FS
|
||||
struct proc_dir_entry * rpc_proc_register(struct net *,struct rpc_stat *);
|
||||
void rpc_proc_unregister(struct net *,const char *);
|
||||
void rpc_proc_zero(struct rpc_program *);
|
||||
void rpc_proc_zero(const struct rpc_program *);
|
||||
struct proc_dir_entry * svc_proc_register(struct net *, struct svc_stat *,
|
||||
const struct file_operations *);
|
||||
void svc_proc_unregister(struct net *, const char *);
|
||||
|
|
@ -71,7 +71,7 @@ void svc_seq_show(struct seq_file *,
|
|||
|
||||
static inline struct proc_dir_entry *rpc_proc_register(struct net *net, struct rpc_stat *s) { return NULL; }
|
||||
static inline void rpc_proc_unregister(struct net *net, const char *p) {}
|
||||
static inline void rpc_proc_zero(struct rpc_program *p) {}
|
||||
static inline void rpc_proc_zero(const struct rpc_program *p) {}
|
||||
|
||||
static inline struct proc_dir_entry *svc_proc_register(struct net *net, struct svc_stat *s,
|
||||
const struct file_operations *f) { return NULL; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue