Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp333786rdb; Sat, 19 Aug 2023 03:55:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG0qRsFneBWtMB3e0ab+G4FFD1NGqMZICOaCEMOQ1WAvkz5CHY8TEeC06sH7/TOYqnocdcb X-Received: by 2002:a05:6a20:7da6:b0:12e:f6e6:882b with SMTP id v38-20020a056a207da600b0012ef6e6882bmr2631701pzj.1.1692442524860; Sat, 19 Aug 2023 03:55:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692442524; cv=none; d=google.com; s=arc-20160816; b=0ZLM2FAbBUcI53iEM/no3y8UJYiaNTIIMqejiSouCblyd9YbXtpPFjP749pC3y4tNW HoSCbMQO2boLlDAmTS/oSdK8z6c1VcGtlm4mzZRqtyGdV09ZstkHAEMTSrcn2r5z7tpF Dj7jrzwimLZh35bq9/tFXL/I+k2xGsqs1+67zRV3YTDwU/mgh8SeepiuDYMyU0Ra9eMU 2Hj5QPPuYtaAfz3y+PIMOHlz1TEy4yrnCHXsa+Qf/aKLPoFUBsSpY6qCNSuEZ1cYd1iD SVK4ro0iWNITYGWyOz3M7S8U3njUDw6ngkzQ4hwn3aziR4zhhn0mtj5GD6e5X/QUAVAS QE2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=8+eL6et/gR4Hp4z4M2jKFBvCrSZqzWDKQ56h+FhIr+8=; fh=iouFhLvmjOlmfcGezm4PJD4Onr0yD1r5l8tXNzP4Rdg=; b=kmpWPs1C/whEra04bSA/xEbo1ojUFAF5OMxTHKQgfO+qYDc1+iFsfSSDinv0MA8wfG /iOyggMJo7Q5aD3s6L1oovZP9qVnUVjZQAdTkCNmsZRtJNAU3g/oNICW/LM/a//9UTEt WEstjnRckoq5q4l3BHlcX2pyWhJNd+bom97Rs+/GL31BXCPgNV0VhuTNsBOptCad48GD fsoTEGdnu5Bl12nT6jS/w8eY9U1fkoKhvVNKfRs8SV+tKlgEc7EIUuK7Py9YMGIZ8wSt 4X5/EOGNP5HbJiK9tgGCx4hbT2y7sAdWkyVA5b+Q0riz739/hKxjCAk2ueP2SvWGCAxV 8v8g== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id bv5-20020a632e05000000b0056a6ea68170si96587pgb.891.2023.08.19.03.55.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Aug 2023 03:55:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B705F5661D; Sat, 19 Aug 2023 01:32:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347638AbjHQCZ2 (ORCPT + 99 others); Wed, 16 Aug 2023 22:25:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347639AbjHQCZR (ORCPT ); Wed, 16 Aug 2023 22:25:17 -0400 Received: from out30-100.freemail.mail.aliyun.com (out30-100.freemail.mail.aliyun.com [115.124.30.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA805269F; Wed, 16 Aug 2023 19:25:15 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R441e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VpxrVdm_1692239094; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VpxrVdm_1692239094) by smtp.aliyun-inc.com; Thu, 17 Aug 2023 10:25:12 +0800 From: Jiapeng Chong To: miklos@szeredi.hu Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] fuse: make fuse_valid_size static Date: Thu, 17 Aug 2023 10:24:53 +0800 Message-Id: <20230817022453.99043-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 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 The fuse_valid_size are not used outside the file dir.c, so the modification is defined as static. fs/fuse/dir.c:353:6: warning: no previous prototype for ‘fuse_valid_size’. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/fuse/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index fb505c1fba02..0cf7c3dbd578 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -350,7 +350,7 @@ int fuse_valid_type(int m) S_ISBLK(m) || S_ISFIFO(m) || S_ISSOCK(m); } -bool fuse_valid_size(u64 size) +static bool fuse_valid_size(u64 size) { return size <= LLONG_MAX; } -- 2.20.1.7.g153144c