From patchwork Mon Jul 31 13:59:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 128771 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2089897vqg; Mon, 31 Jul 2023 08:27:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlFXoNzoYEIPKsRah12SrAukLPklVbIEtLDqy1oo0eI1lppT+k/1mi0wEUu5KotHskr7ev7F X-Received: by 2002:a17:907:1deb:b0:99b:f49c:fcfa with SMTP id og43-20020a1709071deb00b0099bf49cfcfamr118263ejc.21.1690817273099; Mon, 31 Jul 2023 08:27:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690817273; cv=none; d=google.com; s=arc-20160816; b=oDrTUrfqDJ3DSQ6TNmXq9CN9lJLz0flur74LEcDXAHIxavwFpVzW2jEzr1gmfwpXUP rohrWp8cqF1rDtEKsmGIDzsL1TXCelRIAi6kTQy0GsO6Qln8aUzTIzBSCQ7npbsswO3c gLdeNLFgu1Ch5wIconAch3vics8+FCafXaleQNXoYEqSr5VtHfyXZcjvngTdC3gplMQn X0hvnO/QpiaqpEGIFyI7nlAghGsYUhU3jbpUxiJuK4PvNM6Sj13guWcGpFtGtps83laD TWWj+4PfODczH14IIXZL5OUtoT8r1+OOO0EEmjrx0nGve6vBXPnPCvIG1rgtx2iWdu+4 DYrw== 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=ol0GYyIzrMKrksJ3LBbZRrPIjPUEwRLQEVahRFP0PrY=; fh=Omm/AoLhTvrB1QxgDTumzebJFrPbQ3wYbl+61rNrlOo=; b=F06Ydl+5OHbHaY71XiVZJJCn/cmnrdAefal4oNBZwnGB7P876vyo6TE9XwDxUT8Vx/ J39Vkf9eIX1YXmx3iwohhfAFcJgMzRGS9xlKVgMV8sKvrvySThlcjI6CdxTmjd3AIF4e wrNaWiHpTxOY+ddllp5n/K6V26jEw88210Ac1ApU7EDbNuTOa4vVRJLE/qWn0JC/Khv+ MB6gLxxhBji2OVTZeMFheSLHnyrmkicJGPzRXuR6PlRsvQEIf1DftdVhK2l2OxOj1zQu +OgVr0dO9wFMFe5n97SPNxRzjqbNg4bUfoUIGuv9GqxvFtNLFrG1YSuRq+yZg/56R9Rd gr0A== 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 m15-20020a17090607cf00b00992d6e88081si3398474ejc.956.2023.07.31.08.27.29; Mon, 31 Jul 2023 08:27:53 -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 S233116AbjGaOFS (ORCPT + 99 others); Mon, 31 Jul 2023 10:05:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233064AbjGaOEo (ORCPT ); Mon, 31 Jul 2023 10:04:44 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 223A87D96; Mon, 31 Jul 2023 06:59:40 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RF0Bx3cFXzXdTy; Mon, 31 Jul 2023 21:56:09 +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; Mon, 31 Jul 2023 21:59:29 +0800 From: Yue Haibing To: , , , CC: , , Yue Haibing Subject: [PATCH -next] RDMA/hns: Remove unused function declarations Date: Mon, 31 Jul 2023 21:59:16 +0800 Message-ID: <20230731135916.32392-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: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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: 1772950413118998116 X-GMAIL-MSGID: 1772950413118998116 commit b16f8188472e ("RDMA/hns: Refactor eq code for hip06") left behind hns_roce_cleanup_eq_table(). And commit 773f841ab1ae ("RDMA/hns: Avoid filling sgid index when modifying QP to RTR") leave hns_get_gid_index() unused. Signed-off-by: Yue Haibing --- drivers/infiniband/hw/hns/hns_roce_device.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_device.h b/drivers/infiniband/hw/hns/hns_roce_device.h index 6084c1649000..34e099efaae3 100644 --- a/drivers/infiniband/hw/hns/hns_roce_device.h +++ b/drivers/infiniband/hw/hns/hns_roce_device.h @@ -1111,7 +1111,6 @@ int hns_roce_init_qp_table(struct hns_roce_dev *hr_dev); void hns_roce_init_srq_table(struct hns_roce_dev *hr_dev); void hns_roce_init_xrcd_table(struct hns_roce_dev *hr_dev); -void hns_roce_cleanup_eq_table(struct hns_roce_dev *hr_dev); void hns_roce_cleanup_cq_table(struct hns_roce_dev *hr_dev); void hns_roce_cleanup_qp_table(struct hns_roce_dev *hr_dev); @@ -1205,7 +1204,6 @@ void hns_roce_cq_event(struct hns_roce_dev *hr_dev, u32 cqn, int event_type); void flush_cqe(struct hns_roce_dev *dev, struct hns_roce_qp *qp); void hns_roce_qp_event(struct hns_roce_dev *hr_dev, u32 qpn, int event_type); void hns_roce_srq_event(struct hns_roce_dev *hr_dev, u32 srqn, int event_type); -u8 hns_get_gid_index(struct hns_roce_dev *hr_dev, u32 port, int gid_index); void hns_roce_handle_device_err(struct hns_roce_dev *hr_dev); int hns_roce_init(struct hns_roce_dev *hr_dev); void hns_roce_exit(struct hns_roce_dev *hr_dev);