diff mbox series

[v2,-next] SUNRPC: Remove unused declarations

Message ID 20230821123346.52056-1-yuehaibing@huawei.com (mailing list archive)
State New, archived
Headers show
Series [v2,-next] SUNRPC: Remove unused declarations | expand

Commit Message

Yue Haibing Aug. 21, 2023, 12:33 p.m. UTC
Commit c7d7ec8f043e ("SUNRPC: Remove svc_shutdown_net()") removed svc_close_net()
implementation but left declaration in place. Remove it.
Commit 1f11a034cdc4 ("SUNRPC new transport for the NFSv4.1 shared back channel")
removed svc_sock_create()/svc_sock_destroy() but not the declarations.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
---
v2: fix commit message
---
 include/linux/sunrpc/svcsock.h | 3 ---
 1 file changed, 3 deletions(-)

Comments

Chuck Lever Aug. 21, 2023, 3:02 p.m. UTC | #1
On Mon, Aug 21, 2023 at 08:33:46PM +0800, Yue Haibing wrote:
> Commit c7d7ec8f043e ("SUNRPC: Remove svc_shutdown_net()") removed svc_close_net()
> implementation but left declaration in place. Remove it.
> Commit 1f11a034cdc4 ("SUNRPC new transport for the NFSv4.1 shared back channel")
> removed svc_sock_create()/svc_sock_destroy() but not the declarations.
> 
> Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
> ---
> v2: fix commit message
> ---
>  include/linux/sunrpc/svcsock.h | 3 ---
>  1 file changed, 3 deletions(-)

Applied v2 to nfsd-next (for v6.6). Thanks!


> diff --git a/include/linux/sunrpc/svcsock.h b/include/linux/sunrpc/svcsock.h
> index d4a173c5b3be..7c78ec6356b9 100644
> --- a/include/linux/sunrpc/svcsock.h
> +++ b/include/linux/sunrpc/svcsock.h
> @@ -56,7 +56,6 @@ static inline u32 svc_sock_final_rec(struct svc_sock *svsk)
>  /*
>   * Function prototypes.
>   */
> -void		svc_close_net(struct svc_serv *, struct net *);
>  void		svc_recv(struct svc_rqst *rqstp);
>  void		svc_send(struct svc_rqst *rqstp);
>  void		svc_drop(struct svc_rqst *);
> @@ -66,8 +65,6 @@ int		svc_addsock(struct svc_serv *serv, struct net *net,
>  			    const struct cred *cred);
>  void		svc_init_xprt_sock(void);
>  void		svc_cleanup_xprt_sock(void);
> -struct svc_xprt *svc_sock_create(struct svc_serv *serv, int prot);
> -void		svc_sock_destroy(struct svc_xprt *);
>  
>  /*
>   * svc_makesock socket characteristics
> -- 
> 2.34.1
>
diff mbox series

Patch

diff --git a/include/linux/sunrpc/svcsock.h b/include/linux/sunrpc/svcsock.h
index d4a173c5b3be..7c78ec6356b9 100644
--- a/include/linux/sunrpc/svcsock.h
+++ b/include/linux/sunrpc/svcsock.h
@@ -56,7 +56,6 @@  static inline u32 svc_sock_final_rec(struct svc_sock *svsk)
 /*
  * Function prototypes.
  */
-void		svc_close_net(struct svc_serv *, struct net *);
 void		svc_recv(struct svc_rqst *rqstp);
 void		svc_send(struct svc_rqst *rqstp);
 void		svc_drop(struct svc_rqst *);
@@ -66,8 +65,6 @@  int		svc_addsock(struct svc_serv *serv, struct net *net,
 			    const struct cred *cred);
 void		svc_init_xprt_sock(void);
 void		svc_cleanup_xprt_sock(void);
-struct svc_xprt *svc_sock_create(struct svc_serv *serv, int prot);
-void		svc_sock_destroy(struct svc_xprt *);
 
 /*
  * svc_makesock socket characteristics