diff options
Diffstat (limited to 'include/linux/sunrpc')
| -rw-r--r-- | include/linux/sunrpc/cache.h | 2 | ||||
| -rw-r--r-- | include/linux/sunrpc/clnt.h | 8 | ||||
| -rw-r--r-- | include/linux/sunrpc/rpc_pipe_fs.h | 2 | 
3 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h index 5efd8cef389..57531f8e595 100644 --- a/include/linux/sunrpc/cache.h +++ b/include/linux/sunrpc/cache.h @@ -203,7 +203,7 @@ extern void cache_unregister(struct cache_detail *cd);  extern void cache_unregister_net(struct cache_detail *cd, struct net *net);  extern int sunrpc_cache_register_pipefs(struct dentry *parent, const char *, -					mode_t, struct cache_detail *); +					umode_t, struct cache_detail *);  extern void sunrpc_cache_unregister_pipefs(struct cache_detail *);  extern void qword_add(char **bpp, int *lp, char *str); diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h index 3d8f9c44e27..2c5993a17c3 100644 --- a/include/linux/sunrpc/clnt.h +++ b/include/linux/sunrpc/clnt.h @@ -215,7 +215,7 @@ static inline bool __rpc_copy_addr4(struct sockaddr *dst,  	return true;  } -#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) +#if IS_ENABLED(CONFIG_IPV6)  static inline bool __rpc_cmp_addr6(const struct sockaddr *sap1,  				   const struct sockaddr *sap2)  { @@ -237,10 +237,10 @@ static inline bool __rpc_copy_addr6(struct sockaddr *dst,  	struct sockaddr_in6 *dsin6 = (struct sockaddr_in6 *) dst;  	dsin6->sin6_family = ssin6->sin6_family; -	ipv6_addr_copy(&dsin6->sin6_addr, &ssin6->sin6_addr); +	dsin6->sin6_addr = ssin6->sin6_addr;  	return true;  } -#else	/* !(CONFIG_IPV6 || CONFIG_IPV6_MODULE) */ +#else	/* !(IS_ENABLED(CONFIG_IPV6) */  static inline bool __rpc_cmp_addr6(const struct sockaddr *sap1,  				   const struct sockaddr *sap2)  { @@ -252,7 +252,7 @@ static inline bool __rpc_copy_addr6(struct sockaddr *dst,  {  	return false;  } -#endif	/* !(CONFIG_IPV6 || CONFIG_IPV6_MODULE) */ +#endif	/* !(IS_ENABLED(CONFIG_IPV6) */  /**   * rpc_cmp_addr - compare the address portion of two sockaddrs. diff --git a/include/linux/sunrpc/rpc_pipe_fs.h b/include/linux/sunrpc/rpc_pipe_fs.h index e4ea43058d8..2bb03d77375 100644 --- a/include/linux/sunrpc/rpc_pipe_fs.h +++ b/include/linux/sunrpc/rpc_pipe_fs.h @@ -55,7 +55,7 @@ extern int rpc_remove_client_dir(struct dentry *);  struct cache_detail;  extern struct dentry *rpc_create_cache_dir(struct dentry *,  					   struct qstr *, -					   mode_t umode, +					   umode_t umode,  					   struct cache_detail *);  extern void rpc_remove_cache_dir(struct dentry *);  |