From nobody Thu Apr 2 22:12:32 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D45EF357A48; Fri, 13 Feb 2026 11:00:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770980448; cv=none; b=VTFfYIyxCBx1i4gMyThZ7hms7emqwWbzD7IDk2q/tflzK9F0hpoPDFOLKbDgq2QZrpfpNneWC1wSBwTkpzv1haA4pC6oPy0wuf4vSBxLbtOlPt080NdUGk8NacZ4FPzygg/UYSX6cDnlw62hMqo07aQe7ACSOClKXEyy7rBFzUE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770980448; c=relaxed/simple; bh=Sp8gis0/mbQbLEUwfhSepvWCD6rochTkCa5B+TgVyAg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=H+sJ9U22pS3eTT3WWZkqq+9npp4SI+Iwry6nLLhZhSbF5Ey7xZ1bQIKp80AGYL7NUhMVN4G3bJ4Fp46uF9QQBa9bbEBHJvScylIoamq+AbIqf3wWhr1j5xMgKJ+UAhSOPNwCAsOxtnJq3u2934Vui6URvsV3cgE4G9yCXrtw040= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BdW0sEya; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BdW0sEya" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CD9BC116C6; Fri, 13 Feb 2026 11:00:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770980448; bh=Sp8gis0/mbQbLEUwfhSepvWCD6rochTkCa5B+TgVyAg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BdW0sEyaIVu2bI013scid28x1csrnTeT2oq31WiCGYjKbHIKl/paLEHKm9SZH1mBb LqSCC748iINh81+g9yLhfNJ5sYaXdQFqftda6D7lQIZpCFnS7/BpFu1TZLGhPLHNgt fVgLNwByc7ZwGOhG2gYCRqUrTBBhEWsteDiN+8CfC+BlrL7wJBICIOodsY9fLkxoAF CLVgyRRTr0EiP+3tazgI3fP7j5OExxkf5ooqRnjwS+IiO1LeYIBfUJ0scs7ib+A7hd 4HQ9HDwqMZtpGyZSl93RgtVeDPKcD9+1BY/1kSXhKXiVCGUPBdLuhleH+nX9X0URSa i1Rk3dfrGxViQ== From: Leon Romanovsky To: Jason Gunthorpe , Leon Romanovsky , Selvin Xavier , Kalesh AP , Potnuri Bharat Teja , Michael Margolin , Gal Pressman , Yossi Leybovich , Cheng Xu , Kai Shen , Chengchang Tang , Junxian Huang , Abhijit Gangurde , Allen Hubbe , Krzysztof Czurylo , Tatyana Nikolova , Long Li , Konstantin Taranov , Yishai Hadas , Michal Kalderon , Bryan Tan , Vishnu Dasa , Broadcom internal kernel review list , Christian Benvenuti , Nelson Escobar , Dennis Dalessandro , Bernard Metzler , Zhu Yanjun Cc: linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, linux-hyperv@vger.kernel.org Subject: [PATCH rdma-next 31/50] RDMA/core: Remove unused ib_resize_cq() implementation Date: Fri, 13 Feb 2026 12:58:07 +0200 Message-ID: <20260213-refactor-umem-v1-31-f3be85847922@nvidia.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260213-refactor-umem-v1-0-f3be85847922@nvidia.com> References: <20260213-refactor-umem-v1-0-f3be85847922@nvidia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Mailer: b4 0.15-dev-47773 Content-Transfer-Encoding: quoted-printable From: Leon Romanovsky There are no in-kernel users of the CQ resize functionality, so drop it. Signed-off-by: Leon Romanovsky --- drivers/infiniband/core/verbs.c | 10 ---------- include/rdma/ib_verbs.h | 9 --------- 2 files changed, 19 deletions(-) diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verb= s.c index 9d075eeda463..5f59487fc9d4 100644 --- a/drivers/infiniband/core/verbs.c +++ b/drivers/infiniband/core/verbs.c @@ -2264,16 +2264,6 @@ int ib_destroy_cq_user(struct ib_cq *cq, struct ib_u= data *udata) } EXPORT_SYMBOL(ib_destroy_cq_user); =20 -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 */ =20 struct ib_mr *ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 67aa5fc2c0b7..b8adc2f17e73 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -4001,15 +4001,6 @@ struct ib_cq *__ib_create_cq(struct ib_device *devic= e, #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) =20 -/** - * 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. --=20 2.52.0