Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65D83C433F5 for ; Thu, 13 Jan 2022 16:25:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236624AbiAMQZM (ORCPT ); Thu, 13 Jan 2022 11:25:12 -0500 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:42176 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbiAMQZL (ORCPT ); Thu, 13 Jan 2022 11:25:11 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04357;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0V1kwlhb_1642091102; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0V1kwlhb_1642091102) by smtp.aliyun-inc.com(127.0.0.1); Fri, 14 Jan 2022 00:25:09 +0800 From: Jiapeng Chong To: trond.myklebust@hammerspace.com Cc: anna.schumaker@netapp.com, linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] NFSv4: make nfs4_discover_trunking static Date: Fri, 14 Jan 2022 00:25:00 +0800 Message-Id: <20220113162500.8386-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This symbol is not used outside of nfs4proc.c, so marks it static. Fixes the following sparse warning: fs/nfs/nfs4proc.c:4062:5: warning: no previous prototype for ‘nfs4_discover_trunking’ [-Wmissing-prototypes]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/nfs/nfs4proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index e6b49d6318bc..644ba8a02960 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -4059,7 +4059,7 @@ static int _nfs4_discover_trunking(struct nfs_server *server, return status; } -int nfs4_discover_trunking(struct nfs_server *server, struct nfs_fh *fhandle) +static int nfs4_discover_trunking(struct nfs_server *server, struct nfs_fh *fhandle) { struct nfs4_exception exception = { .interruptible = true, -- 2.20.1.7.g153144c