From patchwork Sat Jul 29 12:19:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 128116 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp1013054vqg; Sat, 29 Jul 2023 05:55:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlFjwQSic78sqNoyZ3Y67hEdnTo41+4atzsAj0qxVkvO8JflUO6DioGAIZknTlipN4ItSMxU X-Received: by 2002:a17:902:ec92:b0:1bb:85cd:9190 with SMTP id x18-20020a170902ec9200b001bb85cd9190mr6270596plg.18.1690635352468; Sat, 29 Jul 2023 05:55:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690635352; cv=none; d=google.com; s=arc-20160816; b=043sNS5UdL1RTkNpzGngFrRthXGbnpxyA87gIUQuIFkPh0KgYFANaeKVSY1XCfuHed 5yBKrSRgEZVJ/vbG1e8F8isasvMMGO8jZLD9SVeNMZGdn/nxQrZCrmvu6CbdkyLMnbQf udU3R9TLY5WkX2ZK2jV+/pTEMRVEToPX42Wn/Sf/uZoo1Yn1gljSGE1clcf8w+TjA4uW SzFth0Dcn+iYYY2aOC2Nt1uSUWZUQxizqNSBYd5xejexB26v9wUrKCyMeE73bmk1LxtM Yn58IeaqKsjTiiDXNEj7G347QFnd+AZ4o6HncDX/wxuQGBB2Vlen90fjPTelwpUs0eUb KFAw== 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=iwGU7TRVL2jUiCYLKy3K/c1PKJakahkskoOMrZIb4YQ=; fh=myV22ChSeKbrt+mMHFFE9c8mUOk6tUi7c988vCF+gbs=; b=rhbcKl9ENb13sUuNMFuCBRH3/eFJ/JM7rqVaCLz+uB9w2aqTylueLX0AaHpxravBWH 6gRKG5GwybpbbKa990HAl6wKJm6vWhTWlyUx0C+jSZumqla/VO0l1cOD3doeXOm8Vs9N BA2iYSHn9RPqCmzO4QxdprtnhXFQj7wKJSH3ioPQvYU/yNdZAxUefaA9PjwjRyoQT7Wr HFPknZZiloG8EXhQWg2knpTFJ4EGYT2tgU7quRYprWoGIMfIAXQKqBzvkN4HcM7h8Rsq 5DXCCUql5u5V3UEKP254pW8ewdryhplKlu3/c6dYKnJLT99wlqtkifZuSPF7/yguz8b/ 1YBw== 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 y8-20020a17090322c800b001b8847d973fsi4750844plg.219.2023.07.29.05.55.38; Sat, 29 Jul 2023 05:55:52 -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 S231301AbjG2MTn (ORCPT + 99 others); Sat, 29 Jul 2023 08:19:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjG2MTm (ORCPT ); Sat, 29 Jul 2023 08:19:42 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 011513AB4; Sat, 29 Jul 2023 05:19:41 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RCk4b6X4jzNm8n; Sat, 29 Jul 2023 20:16:15 +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; Sat, 29 Jul 2023 20:19:39 +0800 From: Yue Haibing To: , , , , , , , , , , CC: , , Subject: [PATCH net-next] net/smc: Remove unused function declarations Date: Sat, 29 Jul 2023 20:19:29 +0800 Message-ID: <20230729121929.17180-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: dggems705-chm.china.huawei.com (10.3.19.182) 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, 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: 1772759655280983771 X-GMAIL-MSGID: 1772759655280983771 commit f9aab6f2ce57 ("net/smc: immediate freeing in smc_lgr_cleanup_early()") left behind smc_lgr_schedule_free_work_fast() declaration. And since commit 349d43127dac ("net/smc: fix kernel panic caused by race of smc_sock") smc_ib_modify_qp_reset() is not used anymore. Signed-off-by: Yue Haibing Reviewed-by: Simon Horman Reviewed-by: Tony Lu Reviewed-by: Wenjia Zhang --- net/smc/smc_core.h | 1 - net/smc/smc_ib.h | 1 - 2 files changed, 2 deletions(-) diff --git a/net/smc/smc_core.h b/net/smc/smc_core.h index 1645fba0d2d3..3c1b31bfa1cf 100644 --- a/net/smc/smc_core.h +++ b/net/smc/smc_core.h @@ -539,7 +539,6 @@ int smc_vlan_by_tcpsk(struct socket *clcsock, struct smc_init_info *ini); void smc_conn_free(struct smc_connection *conn); int smc_conn_create(struct smc_sock *smc, struct smc_init_info *ini); -void smc_lgr_schedule_free_work_fast(struct smc_link_group *lgr); int smc_core_init(void); void smc_core_exit(void); diff --git a/net/smc/smc_ib.h b/net/smc/smc_ib.h index 034295676e88..4df5f8c8a0a1 100644 --- a/net/smc/smc_ib.h +++ b/net/smc/smc_ib.h @@ -96,7 +96,6 @@ void smc_ib_destroy_queue_pair(struct smc_link *lnk); int smc_ib_create_queue_pair(struct smc_link *lnk); int smc_ib_ready_link(struct smc_link *lnk); int smc_ib_modify_qp_rts(struct smc_link *lnk); -int smc_ib_modify_qp_reset(struct smc_link *lnk); int smc_ib_modify_qp_error(struct smc_link *lnk); long smc_ib_setup_per_ibdev(struct smc_ib_device *smcibdev); int smc_ib_get_memory_region(struct ib_pd *pd, int access_flags,