Skip to content

Commit 281993f

Browse files
committed
RDMA/cma: Remove unused rdma_res_to_id
JIRA: https://issues.redhat.com/browse/RHEL-110100 commit 0403939 Author: Dr. David Alan Gilbert <linux@treblig.org> Date: Fri Apr 18 17:58:48 2025 +0100 RDMA/cma: Remove unused rdma_res_to_id The last use of rdma_res_to_id() was removed in 2020 by commi t211cd9459fda ("RDMA: Add dedicated CM_ID resource tracker function") Remove it. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Link: https://patch.msgid.link/20250418165848.241305-1-linux@treblig.org Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Kamal Heib <kheib@redhat.com>
1 parent a62f325 commit 281993f

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

drivers/infiniband/core/cma.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -146,19 +146,6 @@ struct iw_cm_id *rdma_iw_cm_id(struct rdma_cm_id *id)
146146
}
147147
EXPORT_SYMBOL(rdma_iw_cm_id);
148148

149-
/**
150-
* rdma_res_to_id() - return the rdma_cm_id pointer for this restrack.
151-
* @res: rdma resource tracking entry pointer
152-
*/
153-
struct rdma_cm_id *rdma_res_to_id(struct rdma_restrack_entry *res)
154-
{
155-
struct rdma_id_private *id_priv =
156-
container_of(res, struct rdma_id_private, res);
157-
158-
return &id_priv->id;
159-
}
160-
EXPORT_SYMBOL(rdma_res_to_id);
161-
162149
static int cma_add_one(struct ib_device *device);
163150
static void cma_remove_one(struct ib_device *device, void *client_data);
164151

include/rdma/rdma_cm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,5 @@ void rdma_read_gids(struct rdma_cm_id *cm_id, union ib_gid *sgid,
388388
union ib_gid *dgid);
389389

390390
struct iw_cm_id *rdma_iw_cm_id(struct rdma_cm_id *cm_id);
391-
struct rdma_cm_id *rdma_res_to_id(struct rdma_restrack_entry *res);
392391

393392
#endif /* RDMA_CM_H */

0 commit comments

Comments
 (0)