From patchwork Wed Aug 9 14:27:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 133290 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2861083vqr; Wed, 9 Aug 2023 08:06:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHqzGu9JX644KakD2J4RO+q8lv3HpOHphOnv0+uveJufdA9f856Rkn7ru7GY4e46JcE9Hoj X-Received: by 2002:a17:902:e74d:b0:1bc:8fca:9d51 with SMTP id p13-20020a170902e74d00b001bc8fca9d51mr4215286plf.31.1691593565295; Wed, 09 Aug 2023 08:06:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691593565; cv=none; d=google.com; s=arc-20160816; b=Thd1KbbKSsH0E3bhmOjT3cQt2oqiFPoJrLqe9FxzNzbOX8qoyHtLuIqKvcok8CPU70 Ol71rqMN/yKQnvpZjW9oitHgEE+8EVYj7/buILDAcNYzvKoLjUyayY2cqjaDOvEMdXib kTJ1rFKtvdzJTEHZft8twlgWkGnN3DwZYSHFOqdFmhve+AbX0lJiADUYOKPCTEqoAgzS c23yWhTV3cfIxB6Opyrxf4/JpXatNdW2JWG1whOxO5J4GDLc7gQ9IGM6U5wTEf7EfWF7 rnuCUsJ500ntmeY0tC/8gLORujoBPNMVoL9ye+0CYEOwsQpxIMWn2pAt91FVb34Jw5L9 G++w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=LwLbGyDqYKrNx3suL38LHeGxvy51b1vyHpit2dXikLE=; fh=z+8h8VJPFN9f0VFCuX4r0lJZJOhwzCAzs1LgjaeiV0M=; b=hhPGLj5yYVxkJ7auPkm+jU6fJjQ5iVkm1As67qPGrzhCy1DBuuwTxcFG3GpI09vcXC erPC14eRWr8SaDor+saMR22XdJvinhT7S0FQyUoSyhVbSME0evCFUiecztf6CYmDsFgF lh+3RR3YRnKsmIVT2QEn9CTTA+dynEOFqnphIG6Nh+5K9T77buPhGCX+YBa2PPRo2ZOD UYSXnbVtAAWT+lwg8kXjVd3DuQl4X8wCNgcvw20di+X2JHSbx2os0C/s2u1N/dC1demn QHnhvqo7e6q4T23Vk/bsjipDKJ/tLv+Ss5qA+FVdEse621I8reh+zIdNTKMFXOShl9BP jeoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a170902d48300b001bba953ac2esi9886054plg.339.2023.08.09.08.05.46; Wed, 09 Aug 2023 08:06:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233295AbjHIO3U (ORCPT + 99 others); Wed, 9 Aug 2023 10:29:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233279AbjHIO3T (ORCPT ); Wed, 9 Aug 2023 10:29:19 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C25981FCC; Wed, 9 Aug 2023 07:29:17 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RLXQy0FFXz9tH4; Wed, 9 Aug 2023 22:25:46 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 9 Aug 2023 22:29:14 +0800 From: Yue Haibing To: , , CC: , Subject: [PATCH -next] rdma: Remove unused function declarations Date: Wed, 9 Aug 2023 22:27:18 +0800 Message-ID: <20230809142718.42316-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773764414654150209 X-GMAIL-MSGID: 1773764414654150209 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 --- include/rdma/ib_verbs.h | 2 -- include/rdma/iw_cm.h | 21 --------------------- 2 files changed, 23 deletions(-) diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 1e7774ac808f..533ab92684d8 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -4440,8 +4440,6 @@ struct net_device *ib_get_net_dev_by_params(struct ib_device *dev, u32 port, const struct sockaddr *addr); int ib_device_set_netdev(struct ib_device *ib_dev, struct net_device *ndev, unsigned int port); -struct net_device *ib_device_netdev(struct ib_device *dev, u32 port); - struct ib_wq *ib_create_wq(struct ib_pd *pd, struct ib_wq_init_attr *init_attr); int ib_destroy_wq_user(struct ib_wq *wq, struct ib_udata *udata); diff --git a/include/rdma/iw_cm.h b/include/rdma/iw_cm.h index 03abd30e6c8c..2b22f153ef63 100644 --- a/include/rdma/iw_cm.h +++ b/include/rdma/iw_cm.h @@ -114,27 +114,6 @@ struct iw_cm_id *iw_create_cm_id(struct ib_device *device, */ void iw_destroy_cm_id(struct iw_cm_id *cm_id); -/** - * iw_cm_bind_qp - Unbind the specified IW CM identifier and QP - * - * @cm_id: The IW CM idenfier to unbind from the QP. - * @qp: The QP - * - * This is called by the provider when destroying the QP to ensure - * that any references held by the IWCM are released. It may also - * be called by the IWCM when destroying a CM_ID to that any - * references held by the provider are released. - */ -void iw_cm_unbind_qp(struct iw_cm_id *cm_id, struct ib_qp *qp); - -/** - * iw_cm_get_qp - Return the ib_qp associated with a QPN - * - * @ib_device: The IB device - * @qpn: The queue pair number - */ -struct ib_qp *iw_cm_get_qp(struct ib_device *device, int qpn); - /** * iw_cm_listen - Listen for incoming connection requests on the * specified IW CM id.