Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2377449rwb; Sat, 29 Jul 2023 05:54:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlEOFP79lVokbPDJ7FjY/IHDPsBNmZSUxpASXzVhfgFapf10IN5hyl7eSwfXkFhn1cyYuowE X-Received: by 2002:a05:6a20:3d05:b0:125:dd60:957a with SMTP id y5-20020a056a203d0500b00125dd60957amr5743873pzi.26.1690635249690; Sat, 29 Jul 2023 05:54:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690635249; cv=none; d=google.com; s=arc-20160816; b=uYJDfLifCn/9XkVMVCw1lI/YDpNprrYtyKPDAg6E5s4lAVFx4KRVbmVXDsYHCXpTe+ Zmo7MX9GaJlJVMBilh/i8+eHohyBCsc0bDMumzDD4KOCEg1ZrOeHKb35SDkjIROL7Cc2 JE80MMsIgByQg9WweJQu8efJaN58k/gOetFWltSCv6hoKwTHOSoLdbvgAQof3FkDZAKd iVvMqUK56ABVhV74g7B9TwP8KXz6MaD7bM7ACudvSfhQdGFwoiZONTFrUOceWz9LtGq5 FM8Gop2SR1Oe/x4LOsni1KC/mA4x/AGGsrrYffFyl+9V+nLqf5tArGL87ViZm8WR3fYb gcFQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m18-20020a637d52000000b00564233887a3si1669240pgn.528.2023.07.29.05.53.56; Sat, 29 Jul 2023 05:54:09 -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 S230313AbjG2MTn (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 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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