[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230817022453.99043-1-jiapeng.chong@linux.alibaba.com>
Date: Thu, 17 Aug 2023 10:24:53 +0800
From: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
To: miklos@...redi.hu
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>,
Abaci Robot <abaci@...ux.alibaba.com>
Subject: [PATCH] fuse: make fuse_valid_size static
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 <abaci@...ux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
---
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
Powered by blists - more mailing lists