linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fuse: make fuse_valid_size static
@ 2023-08-17  2:24 Jiapeng Chong
  2023-08-21 10:24 ` Miklos Szeredi
  0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2023-08-17  2:24 UTC (permalink / raw)
  To: miklos; +Cc: linux-fsdevel, linux-kernel, Jiapeng Chong, Abaci Robot

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@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] fuse: make fuse_valid_size static
  2023-08-17  2:24 [PATCH] fuse: make fuse_valid_size static Jiapeng Chong
@ 2023-08-21 10:24 ` Miklos Szeredi
  0 siblings, 0 replies; 2+ messages in thread
From: Miklos Szeredi @ 2023-08-21 10:24 UTC (permalink / raw)
  To: Jiapeng Chong; +Cc: linux-fsdevel, linux-kernel, Abaci Robot

On Thu, 17 Aug 2023 at 04:25, Jiapeng Chong
<jiapeng.chong@linux.alibaba.com> wrote:
>
> The fuse_valid_size are not used outside the file dir.c, so the
> modification is defined as static.

Thanks, folded.

Miklos

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-21 10:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-17  2:24 [PATCH] fuse: make fuse_valid_size static Jiapeng Chong
2023-08-21 10:24 ` Miklos Szeredi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).