Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5658986rwb; Wed, 9 Aug 2023 07:29:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGi6s5RbeKJlggesxc+/enu2xtj4LM2MCFXRnDP3wHTRN+z2PVaWelLD3LT8d24ta7csdDi X-Received: by 2002:a17:903:2450:b0:1b5:edd:e3c7 with SMTP id l16-20020a170903245000b001b50edde3c7mr3286512pls.16.1691591383676; Wed, 09 Aug 2023 07:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691591383; cv=none; d=google.com; s=arc-20160816; b=ZwREKITqd6y8B2WD4i15wgq1A3yQNjUBxZ1ybbdo15+xEXiMosxcvpgNOE1oOeSqe0 2U6RFn+1Ggs7GoCAJBPDZV6YoCCSM7mKvacj63s1den/7b3MlrZbk2tIny/sJNll/2Fx A4ok5ZwHZbuZkRTkuh3UxCmot8T8d4YG90FnhU+z8/kmejDk3Dl0dtqKJ7SiGFzCblQ4 lyRDP0XX5gPLZgvu8B/I6Rg/hytOJFIHyZXWaPW+UufWcvqx7UIF7KXJXZphgRsIXAop bfXkFRKszGKiQ7Wrj3v2J1z5LBMLgcVND4q1jeOnZNFc8LQcC73/Ef/BlJuAtO8LKgXn z+Dw== 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=YJATTGmeR/myEufsd202zSWQDvMC+Mdui4wKDoVzfnY=; fh=bIunAGs4nL4T9Pg+S2YdRfM20/WNFsriK+rG9Pvfwk0=; b=FsGiajoqu00ZkWx3bjB5ifAZ+zKse2HhYNst8ffI8JWkrT0vhSf+x0uCH0I1OryQm2 7vsW/6K68l4/fkWw6M2CQT9vZ28ihNn6feATojepyVGbvach1yhxZRK2sILTdL4xcL2O +3RMcKN9pNDo8BpyjM67KFyQ5xgXCagyNGozUHW3LhaDqqnzFOMMLJyCw2oei26JzT8M WneeHEUZzdJg3aqFII+P5ju8xhnTvR+4v1G1U53XVfLIMzgLfmd3ghpMWfSaxisNbDWo ozNLplaI+w7SzTCc7+vdCgXpTop1VxvvvSLIhC8529Cy0hArJEwruZrozoMYypeKgpE9 EMig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-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 kn8-20020a170903078800b001b9c1821f6bsi9484045plb.98.2023.08.09.07.29.21; Wed, 09 Aug 2023 07:29:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-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 S231858AbjHIOOx (ORCPT + 99 others); Wed, 9 Aug 2023 10:14:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230051AbjHIOOw (ORCPT ); Wed, 9 Aug 2023 10:14:52 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8EDC1FCC; Wed, 9 Aug 2023 07:14:50 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4RLX8w3JBrz15NQq; Wed, 9 Aug 2023 22:13:36 +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:14:47 +0800 From: Yue Haibing To: , , , , , , , , , CC: , Subject: [PATCH -next] SUNRPC: Remove unused declaration rpc_modcount() Date: Wed, 9 Aug 2023 22:14:26 +0800 Message-ID: <20230809141426.41192-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: dggems703-chm.china.huawei.com (10.3.19.180) 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, 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-nfs@vger.kernel.org These declarations are never implemented since the beginning of git history. Remove these, then merge the two #ifdef block for simplification. Signed-off-by: Yue Haibing --- include/linux/sunrpc/stats.h | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/include/linux/sunrpc/stats.h b/include/linux/sunrpc/stats.h index d94d4f410507..3ce1550d1beb 100644 --- a/include/linux/sunrpc/stats.h +++ b/include/linux/sunrpc/stats.h @@ -43,22 +43,6 @@ struct net; #ifdef CONFIG_PROC_FS int rpc_proc_init(struct net *); void rpc_proc_exit(struct net *); -#else -static inline int rpc_proc_init(struct net *net) -{ - return 0; -} - -static inline void rpc_proc_exit(struct net *net) -{ -} -#endif - -#ifdef MODULE -void rpc_modcount(struct inode *, int); -#endif - -#ifdef CONFIG_PROC_FS struct proc_dir_entry * rpc_proc_register(struct net *,struct rpc_stat *); void rpc_proc_unregister(struct net *,const char *); void rpc_proc_zero(const struct rpc_program *); @@ -69,7 +53,14 @@ void svc_proc_unregister(struct net *, const char *); void svc_seq_show(struct seq_file *, const struct svc_stat *); #else +static inline int rpc_proc_init(struct net *net) +{ + return 0; +} +static inline void rpc_proc_exit(struct net *net) +{ +} static inline struct proc_dir_entry *rpc_proc_register(struct net *net, struct rpc_stat *s) { return NULL; } static inline void rpc_proc_unregister(struct net *net, const char *p) {} static inline void rpc_proc_zero(const struct rpc_program *p) {} -- 2.34.1