diff mbox series

[net-next] RDS: IB: Remove unused declarations

Message ID 20240731063630.3592046-1-yuehaibing@huawei.com (mailing list archive)
State Accepted
Commit f9c141fc33393923451bdd190c67d9d4f5d2c67f
Delegated to: Netdev Maintainers
Headers show
Series [net-next] RDS: IB: Remove unused declarations | expand

Checks

Context Check Description
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Clearly marked for net-next
netdev/ynl success Generated files up to date; no warnings/errors; no diff in generated;
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 42 this patch: 42
netdev/build_tools success No tools touched, skip
netdev/cc_maintainers success CCed 7 of 7 maintainers
netdev/build_clang success Errors and warnings before: 43 this patch: 43
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 43 this patch: 43
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 16 lines checked
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/contest success net-next-2024-07-31--12-00 (tests: 707)

Commit Message

Yue Haibing July 31, 2024, 6:36 a.m. UTC
Commit f4f943c958a2 ("RDS: IB: ack more receive completions to improve performance")
removed rds_ib_recv_tasklet_fn() implementation but not the declaration.
And commit ec16227e1414 ("RDS/IB: Infiniband transport") declared but never implemented
other functions.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
---
 net/rds/ib.h | 4 ----
 1 file changed, 4 deletions(-)

Comments

Yue Haibing July 31, 2024, 10:12 a.m. UTC | #1
+CC Simon Horman <horms@kernel.org>

On 2024/7/31 14:36, Yue Haibing wrote:
> Commit f4f943c958a2 ("RDS: IB: ack more receive completions to improve performance")
> removed rds_ib_recv_tasklet_fn() implementation but not the declaration.
> And commit ec16227e1414 ("RDS/IB: Infiniband transport") declared but never implemented
> other functions.
> 
> Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
> Reviewed-by: Simon Horman <horms@kernel.org>
> ---
>  net/rds/ib.h | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/net/rds/ib.h b/net/rds/ib.h
> index 2ba71102b1f1..8ef3178ed4d6 100644
> --- a/net/rds/ib.h
> +++ b/net/rds/ib.h
> @@ -369,9 +369,6 @@ int rds_ib_conn_alloc(struct rds_connection *conn, gfp_t gfp);
>  void rds_ib_conn_free(void *arg);
>  int rds_ib_conn_path_connect(struct rds_conn_path *cp);
>  void rds_ib_conn_path_shutdown(struct rds_conn_path *cp);
> -void rds_ib_state_change(struct sock *sk);
> -int rds_ib_listen_init(void);
> -void rds_ib_listen_stop(void);
>  __printf(2, 3)
>  void __rds_ib_conn_error(struct rds_connection *conn, const char *, ...);
>  int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id,
> @@ -402,7 +399,6 @@ void rds_ib_inc_free(struct rds_incoming *inc);
>  int rds_ib_inc_copy_to_user(struct rds_incoming *inc, struct iov_iter *to);
>  void rds_ib_recv_cqe_handler(struct rds_ib_connection *ic, struct ib_wc *wc,
>  			     struct rds_ib_ack_state *state);
> -void rds_ib_recv_tasklet_fn(unsigned long data);
>  void rds_ib_recv_init_ring(struct rds_ib_connection *ic);
>  void rds_ib_recv_clear_ring(struct rds_ib_connection *ic);
>  void rds_ib_recv_init_ack(struct rds_ib_connection *ic);
Allison Henderson July 31, 2024, 6:31 p.m. UTC | #2
On Wed, 2024-07-31 at 14:36 +0800, Yue Haibing wrote:
> Commit f4f943c958a2 ("RDS: IB: ack more receive completions to
> improve performance")
> removed rds_ib_recv_tasklet_fn() implementation but not the
> declaration.
> And commit ec16227e1414 ("RDS/IB: Infiniband transport") declared but
> never implemented
> other functions.
> 
> Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
> Reviewed-by: Simon Horman <horms@kernel.org>

Hello Yue,

Thanks for finding these.  The declarations do appear unused, so I
think it is fine to remove them.  Thanks for the clean up.

Reviewed-by: Allison Henderson <allison.henderson@oracle.com>

> ---
>  net/rds/ib.h | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/net/rds/ib.h b/net/rds/ib.h
> index 2ba71102b1f1..8ef3178ed4d6 100644
> --- a/net/rds/ib.h
> +++ b/net/rds/ib.h
> @@ -369,9 +369,6 @@ int rds_ib_conn_alloc(struct rds_connection
> *conn, gfp_t gfp);
>  void rds_ib_conn_free(void *arg);
>  int rds_ib_conn_path_connect(struct rds_conn_path *cp);
>  void rds_ib_conn_path_shutdown(struct rds_conn_path *cp);
> -void rds_ib_state_change(struct sock *sk);
> -int rds_ib_listen_init(void);
> -void rds_ib_listen_stop(void);
>  __printf(2, 3)
>  void __rds_ib_conn_error(struct rds_connection *conn, const char *,
> ...);
>  int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id,
> @@ -402,7 +399,6 @@ void rds_ib_inc_free(struct rds_incoming *inc);
>  int rds_ib_inc_copy_to_user(struct rds_incoming *inc, struct
> iov_iter *to);
>  void rds_ib_recv_cqe_handler(struct rds_ib_connection *ic, struct
> ib_wc *wc,
>                              struct rds_ib_ack_state *state);
> -void rds_ib_recv_tasklet_fn(unsigned long data);
>  void rds_ib_recv_init_ring(struct rds_ib_connection *ic);
>  void rds_ib_recv_clear_ring(struct rds_ib_connection *ic);
>  void rds_ib_recv_init_ack(struct rds_ib_connection *ic);
patchwork-bot+netdevbpf@kernel.org Aug. 1, 2024, 4:10 p.m. UTC | #3
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Wed, 31 Jul 2024 14:36:30 +0800 you wrote:
> Commit f4f943c958a2 ("RDS: IB: ack more receive completions to improve performance")
> removed rds_ib_recv_tasklet_fn() implementation but not the declaration.
> And commit ec16227e1414 ("RDS/IB: Infiniband transport") declared but never implemented
> other functions.
> 
> Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
> Reviewed-by: Simon Horman <horms@kernel.org>
> 
> [...]

Here is the summary with links:
  - [net-next] RDS: IB: Remove unused declarations
    https://git.kernel.org/netdev/net-next/c/f9c141fc3339

You are awesome, thank you!
diff mbox series

Patch

diff --git a/net/rds/ib.h b/net/rds/ib.h
index 2ba71102b1f1..8ef3178ed4d6 100644
--- a/net/rds/ib.h
+++ b/net/rds/ib.h
@@ -369,9 +369,6 @@  int rds_ib_conn_alloc(struct rds_connection *conn, gfp_t gfp);
 void rds_ib_conn_free(void *arg);
 int rds_ib_conn_path_connect(struct rds_conn_path *cp);
 void rds_ib_conn_path_shutdown(struct rds_conn_path *cp);
-void rds_ib_state_change(struct sock *sk);
-int rds_ib_listen_init(void);
-void rds_ib_listen_stop(void);
 __printf(2, 3)
 void __rds_ib_conn_error(struct rds_connection *conn, const char *, ...);
 int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id,
@@ -402,7 +399,6 @@  void rds_ib_inc_free(struct rds_incoming *inc);
 int rds_ib_inc_copy_to_user(struct rds_incoming *inc, struct iov_iter *to);
 void rds_ib_recv_cqe_handler(struct rds_ib_connection *ic, struct ib_wc *wc,
 			     struct rds_ib_ack_state *state);
-void rds_ib_recv_tasklet_fn(unsigned long data);
 void rds_ib_recv_init_ring(struct rds_ib_connection *ic);
 void rds_ib_recv_clear_ring(struct rds_ib_connection *ic);
 void rds_ib_recv_init_ack(struct rds_ib_connection *ic);