Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp305406rwl; Wed, 9 Aug 2023 15:04:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHX0Rs5+Q6AA0M3A2gPP04Li+qr8OFQ6YTcL/frzFJdicsEmrDHbmStNV+r6QsaUpnll63q X-Received: by 2002:a05:6a00:190e:b0:687:4a3d:8fad with SMTP id y14-20020a056a00190e00b006874a3d8fadmr611373pfi.16.1691618647274; Wed, 09 Aug 2023 15:04:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691618647; cv=none; d=google.com; s=arc-20160816; b=AoRbfnZcd372M6rNSDVCoTsMbdebXW+hCANxEgRhya7o80bziOTvRyghONYvZH4I8y SsTbUq5+2czJxsWjHLwMlf6q05Tl4t9av0BSBozrIlPl/EgP9z03F+uQhq7OEE2UFqiE 2NQ2v2ZHZHXcBv+jdNQEWsX7mjOBf65VSC+SDdslIeHj2L03usIMHN7jNQjB3Ms/q7Oa bbY8Yhw+1SXTHPOijiAp6I5ED/PEv2ASJEUywLEicvVukXidmrMFz2jLXYZ8hLV3qDr2 j7Odbca18M8JLe8zODFg+V/mbL2iTv1/IeYm7vpERP+E/HBTL4QYlzEvtuC6VCduH9y1 7Gbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=SBfO+cmTIVu68kmGmMkFCRYZIK4fBK6RzvP4dlFXVnA=; fh=RoswNl/I3u+52fH9UaQw2TQ/tXoqp8DFsN9tCOFHJxg=; b=lMBTDThSfkLD4rqZsuOBHoCz0JSgFwUckTRgJJUU0Qc8bJM+pNMePq3w6i29IdKHBN ds3SrvcLDotfzoapsBUoPpLn3IYVsTuaOc+iNzWiWsfPxXWKLj0zvrcF38p/4UBTZGIw ugcrhoyYd1BY52fkocfmL+a7wZpbH9aGSPq5sWmdS5wfuq5Alnsa+uqWRb/RfIKgKBOp 2JaoWnL9fHv3N7b+aTiiVmloMExUR0sucvC8ZqKixfezGdMNu863Qr4AoqtjtuzWNXnV oi6bTU3uXPel2JxFzAk+gdgJA0YKFQZVd19o9rAqwzxLlShxkdDWJxi8uGrqVLr+LzeV wAWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=1e3FnObz; dkim=neutral (no key) header.i=@suse.de; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s11-20020a056a0008cb00b0066883879b57si162365pfu.51.2023.08.09.15.03.45; Wed, 09 Aug 2023 15:04:07 -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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=1e3FnObz; dkim=neutral (no key) header.i=@suse.de; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232088AbjHIVhC (ORCPT + 99 others); Wed, 9 Aug 2023 17:37:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231251AbjHIVhB (ORCPT ); Wed, 9 Aug 2023 17:37:01 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C997A1718; Wed, 9 Aug 2023 14:36:55 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 5F80821857; Wed, 9 Aug 2023 21:36:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1691617014; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SBfO+cmTIVu68kmGmMkFCRYZIK4fBK6RzvP4dlFXVnA=; b=1e3FnObzcmp2zYQGStCyHwb24hME1PrLq+75elZo5iQinGHhzdLPVocHPadgMHtWx0UFsM E3lwKNHEWD3cxzX713U1/mW8fii3W9YlpPhFEkxg8fZZlmcHfYS2evj1/uZLYZybQGTnBS +1pd420T0Zd1mWAoAgUFbxvRqyjZOCY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1691617014; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SBfO+cmTIVu68kmGmMkFCRYZIK4fBK6RzvP4dlFXVnA=; b=al572XNxQRQGZPvywmTeGOmdKGFNSm9s0zV1KSY2p52G+OuhXQ0vFHv4ifEu2p4MMTMfoe cLJ8TbQsks0dYlCA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A40EF133B5; Wed, 9 Aug 2023 21:36:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id qq8oFfIG1GSFYgAAMHmgww (envelope-from ); Wed, 09 Aug 2023 21:36:50 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: "Yue Haibing" Cc: trond.myklebust@hammerspace.com, anna@kernel.org, chuck.lever@oracle.com, jlayton@kernel.org, kolga@netapp.com, Dai.Ngo@oracle.com, tom@talpey.com, yuehaibing@huawei.com, kuba@kernel.org, linux-nfs@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH -next] SUNRPC: Remove unused declaration rpc_modcount() In-reply-to: <20230809141426.41192-1-yuehaibing@huawei.com> References: <20230809141426.41192-1-yuehaibing@huawei.com> Date: Thu, 10 Aug 2023 07:36:44 +1000 Message-id: <169161700457.32308.8657894998370155540@noble.neil.brown.name> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,T_SPF_TEMPERROR,URIBL_BLOCKED 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 On Thu, 10 Aug 2023, Yue Haibing wrote: > These declarations are never implemented since the beginning of git history. > Remove these, then merge the two #ifdef block for simplification. For the historically minded, this was added in 2.1.79 https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/diff/net/= sunrpc/stats.c?id=3Dae04feb38f319f0d389ea9e41d10986dba22b46d and removed in 2.3.27. https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/diff/net/= sunrpc/stats.c?id=3D53022f15f8c0381a9b55bbe2893a5f9f6abda6f3 Reviewed-by: NeilBrown Thanks, NeilBRown >=20 > Signed-off-by: Yue Haibing > --- > include/linux/sunrpc/stats.h | 23 +++++++---------------- > 1 file changed, 7 insertions(+), 16 deletions(-) >=20 > 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; > +} > =20 > +static inline void rpc_proc_exit(struct net *net) > +{ > +} > static inline struct proc_dir_entry *rpc_proc_register(struct net *net, st= ruct 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) {} > --=20 > 2.34.1 >=20 >=20