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

RDMA Remove unused function declarations

Commit c2261dd76b54 ("RDMA/device: Add ib_device_set_netdev() as an alternative to get_netdev")
declared but never implemented ib_device_netdev(), remove it.
Commit 922a8e9fb2e0 ("RDMA: iWARP Connection Manager.") declared but never implemented
iw_cm_unbind_qp() and iw_cm_get_qp().

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20230809142718.42316-1-yuehaibing@huawei.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>

authored by

Yue Haibing and committed by
Leon Romanovsky
40cc695d 25944c06

-23
-2
include/rdma/ib_verbs.h
··· 4440 4440 const struct sockaddr *addr); 4441 4441 int ib_device_set_netdev(struct ib_device *ib_dev, struct net_device *ndev, 4442 4442 unsigned int port); 4443 - struct net_device *ib_device_netdev(struct ib_device *dev, u32 port); 4444 - 4445 4443 struct ib_wq *ib_create_wq(struct ib_pd *pd, 4446 4444 struct ib_wq_init_attr *init_attr); 4447 4445 int ib_destroy_wq_user(struct ib_wq *wq, struct ib_udata *udata);
-21
include/rdma/iw_cm.h
··· 115 115 void iw_destroy_cm_id(struct iw_cm_id *cm_id); 116 116 117 117 /** 118 - * iw_cm_bind_qp - Unbind the specified IW CM identifier and QP 119 - * 120 - * @cm_id: The IW CM idenfier to unbind from the QP. 121 - * @qp: The QP 122 - * 123 - * This is called by the provider when destroying the QP to ensure 124 - * that any references held by the IWCM are released. It may also 125 - * be called by the IWCM when destroying a CM_ID to that any 126 - * references held by the provider are released. 127 - */ 128 - void iw_cm_unbind_qp(struct iw_cm_id *cm_id, struct ib_qp *qp); 129 - 130 - /** 131 - * iw_cm_get_qp - Return the ib_qp associated with a QPN 132 - * 133 - * @ib_device: The IB device 134 - * @qpn: The queue pair number 135 - */ 136 - struct ib_qp *iw_cm_get_qp(struct ib_device *device, int qpn); 137 - 138 - /** 139 118 * iw_cm_listen - Listen for incoming connection requests on the 140 119 * specified IW CM id. 141 120 *