diff options
| author | James Morris <james.l.morris@oracle.com> | 2017-11-29 12:47:41 +1100 | 
|---|---|---|
| committer | James Morris <james.l.morris@oracle.com> | 2017-11-29 12:47:41 +1100 | 
| commit | cf40a76e7d5874bb25f4404eecc58a2e033af885 (patch) | |
| tree | 8fd81cbea03c87b3d41d7ae5b1d11eadd35d6ef5 /net/sunrpc/svc.c | |
| parent | ab5348c9c23cd253f5902980d2d8fe067dc24c82 (diff) | |
| parent | 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff) | |
Merge tag 'v4.15-rc1' into next-seccomp
Linux 4.15-rc1
Diffstat (limited to 'net/sunrpc/svc.c')
| -rw-r--r-- | net/sunrpc/svc.c | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 85ce0db5b0a6..387cc4add6f6 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -50,7 +50,7 @@ EXPORT_SYMBOL_GPL(svc_pool_map);  static DEFINE_MUTEX(svc_pool_map_mutex);/* protects svc_pool_map.count only */  static int -param_set_pool_mode(const char *val, struct kernel_param *kp) +param_set_pool_mode(const char *val, const struct kernel_param *kp)  {  	int *ip = (int *)kp->arg;  	struct svc_pool_map *m = &svc_pool_map; @@ -80,7 +80,7 @@ out:  }  static int -param_get_pool_mode(char *buf, struct kernel_param *kp) +param_get_pool_mode(char *buf, const struct kernel_param *kp)  {  	int *ip = (int *)kp->arg; @@ -421,7 +421,7 @@ __svc_init_bc(struct svc_serv *serv)   */  static struct svc_serv *  __svc_create(struct svc_program *prog, unsigned int bufsize, int npools, -	     struct svc_serv_ops *ops) +	     const struct svc_serv_ops *ops)  {  	struct svc_serv	*serv;  	unsigned int vers; @@ -455,7 +455,7 @@ __svc_create(struct svc_program *prog, unsigned int bufsize, int npools,  	serv->sv_xdrsize   = xdrsize;  	INIT_LIST_HEAD(&serv->sv_tempsocks);  	INIT_LIST_HEAD(&serv->sv_permsocks); -	init_timer(&serv->sv_temptimer); +	timer_setup(&serv->sv_temptimer, NULL, 0);  	spin_lock_init(&serv->sv_lock);  	__svc_init_bc(serv); @@ -486,7 +486,7 @@ __svc_create(struct svc_program *prog, unsigned int bufsize, int npools,  struct svc_serv *  svc_create(struct svc_program *prog, unsigned int bufsize, -	   struct svc_serv_ops *ops) +	   const struct svc_serv_ops *ops)  {  	return __svc_create(prog, bufsize, /*npools*/1, ops);  } @@ -494,7 +494,7 @@ EXPORT_SYMBOL_GPL(svc_create);  struct svc_serv *  svc_create_pooled(struct svc_program *prog, unsigned int bufsize, -		  struct svc_serv_ops *ops) +		  const struct svc_serv_ops *ops)  {  	struct svc_serv *serv;  	unsigned int npools = svc_pool_map_get(); | 
