Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net/rds: Remove unused function declarations

Commit 39de8281791c ("RDS: Main header file") declared but never implemented
rds_trans_init() and rds_trans_exit(), remove it.
Commit d37c9359056f ("RDS: Move loop-only function to loop.c") removed the
implementation rds_message_inc_free() but not the declaration.

Since commit 55b7ed0b582f ("RDS: Common RDMA transport code")
rds_rdma_conn_connect() is never implemented and used.
rds_tcp_map_seq() is never implemented and used since
commit 70041088e3b9 ("RDS: Add TCP transport to RDS").

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Yue Haibing and committed by
David S. Miller
2b8893b6 8fe08d70

-5
-1
net/rds/rdma_transport.h
··· 17 17 */ 18 18 #define RDS_RDMA_REJ_INCOMPAT 1 19 19 20 - int rds_rdma_conn_connect(struct rds_connection *conn); 21 20 int rds_rdma_cm_event_handler(struct rdma_cm_id *cm_id, 22 21 struct rdma_cm_event *event); 23 22 int rds6_rdma_cm_event_handler(struct rdma_cm_id *cm_id,
-3
net/rds/rds.h
··· 863 863 unsigned int *pos, void *buf, unsigned int *buflen); 864 864 int rds_message_add_rdma_dest_extension(struct rds_header *hdr, u32 r_key, u32 offset); 865 865 int rds_message_inc_copy_to_user(struct rds_incoming *inc, struct iov_iter *to); 866 - void rds_message_inc_free(struct rds_incoming *inc); 867 866 void rds_message_addref(struct rds_message *rm); 868 867 void rds_message_put(struct rds_message *rm); 869 868 void rds_message_wait(struct rds_message *rm); ··· 1012 1013 unsigned int rds_trans_stats_info_copy(struct rds_info_iterator *iter, 1013 1014 unsigned int avail); 1014 1015 struct rds_transport *rds_trans_get(int t_type); 1015 - int rds_trans_init(void); 1016 - void rds_trans_exit(void); 1017 1016 1018 1017 #endif
-1
net/rds/tcp.h
··· 56 56 struct rds_tcp_connection *tc); 57 57 u32 rds_tcp_write_seq(struct rds_tcp_connection *tc); 58 58 u32 rds_tcp_snd_una(struct rds_tcp_connection *tc); 59 - u64 rds_tcp_map_seq(struct rds_tcp_connection *tc, u32 seq); 60 59 extern struct rds_transport rds_tcp_transport; 61 60 void rds_tcp_accept_work(struct sock *sk); 62 61 int rds_tcp_laddr_check(struct net *net, const struct in6_addr *addr,