Message ID | 20230729121929.17180-1-yuehaibing@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;hanasaki@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <yuehaibing@huawei.com> To: <kgraul@linux.ibm.com>, <wenjia@linux.ibm.com>, <jaka@linux.ibm.com>, <alibuda@linux.alibaba.com>, <tonylu@linux.alibaba.com>, <guwen@linux.alibaba.com>, <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>, <yuehaibing@huawei.com> CC: <linux-s390@vger.kernel.org>, <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org> 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 Content-Type: text/plain 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772759655280983771 X-GMAIL-MSGID: 1772759655280983771 |
Series |
[net-next] net/smc: Remove unused function declarations
|
|
Commit Message
Yue Haibing
July 29, 2023, 12:19 p.m. UTC
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 <yuehaibing@huawei.com>
---
net/smc/smc_core.h | 1 -
net/smc/smc_ib.h | 1 -
2 files changed, 2 deletions(-)
Comments
On Sat, Jul 29, 2023 at 08:19:29PM +0800, Yue Haibing wrote: > 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 <yuehaibing@huawei.com> Reviewed-by: Simon Horman <horms@kernel.org>
On Sat, Jul 29, 2023 at 08:19:29PM +0800, Yue Haibing wrote: > 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 <yuehaibing@huawei.com> LGTM, thanks. Reviewed-by: Tony Lu <tonylu@linux.alibaba.com> > --- > 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, > -- > 2.34.1
On 29.07.23 14:19, Yue Haibing wrote: > 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 <yuehaibing@huawei.com> Thank you for the findings! Reviewed-by: Wenjia Zhang <wenjia@linux.ibm.com>
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Sat, 29 Jul 2023 20:19:29 +0800 you wrote: > 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 <yuehaibing@huawei.com> > > [...] Here is the summary with links: - [net-next] net/smc: Remove unused function declarations https://git.kernel.org/netdev/net-next/c/4cbc32a8a2b4 You are awesome, thank you!
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,