]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
RDMA/core: Remove unused ib_resize_cq() implementation
authorLeon Romanovsky <leonro@nvidia.com>
Wed, 18 Mar 2026 10:02:36 +0000 (12:02 +0200)
committerLeon Romanovsky <leon@kernel.org>
Mon, 30 Mar 2026 17:47:43 +0000 (13:47 -0400)
There are no in-kernel users of the CQ resize functionality, so drop it.

Link: https://patch.msgid.link/20260318-resize_cq-type-v1-1-b2846ed18846@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/core/verbs.c
include/rdma/ib_verbs.h

index 721cd4321238012e04fe072566f6cc00bf9f957c..bac87de9cc6735c5d25420a7fac8facdd77d5f09 100644 (file)
@@ -2264,16 +2264,6 @@ int ib_destroy_cq_user(struct ib_cq *cq, struct ib_udata *udata)
 }
 EXPORT_SYMBOL(ib_destroy_cq_user);
 
-int ib_resize_cq(struct ib_cq *cq, int cqe)
-{
-       if (cq->shared)
-               return -EOPNOTSUPP;
-
-       return cq->device->ops.resize_cq ?
-               cq->device->ops.resize_cq(cq, cqe, NULL) : -EOPNOTSUPP;
-}
-EXPORT_SYMBOL(ib_resize_cq);
-
 /* Memory regions */
 
 struct ib_mr *ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,
index 57b81ca0fabdce29e9e4f43931b088928b0b95e4..37260d37144c5eac8ebcaabfd57fa3e2f06ea74b 100644 (file)
@@ -4103,15 +4103,6 @@ struct ib_cq *__ib_create_cq(struct ib_device *device,
 #define ib_create_cq(device, cmp_hndlr, evt_hndlr, cq_ctxt, cq_attr) \
        __ib_create_cq((device), (cmp_hndlr), (evt_hndlr), (cq_ctxt), (cq_attr), KBUILD_MODNAME)
 
-/**
- * ib_resize_cq - Modifies the capacity of the CQ.
- * @cq: The CQ to resize.
- * @cqe: The minimum size of the CQ.
- *
- * Users can examine the cq structure to determine the actual CQ size.
- */
-int ib_resize_cq(struct ib_cq *cq, int cqe);
-
 /**
  * rdma_set_cq_moderation - Modifies moderation params of the CQ
  * @cq: The CQ to modify.