Skip to contentSkip to conversation

fuse: make fuse_valid_size static

PATCH In review Jiapeng Chong 2 participants 2 messages Aug 17, 2023 – Aug 21, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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’.

---
 fs/fuse/dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fuse/dir.c +1 -1
index fb505c1fba02..0cf7c3dbd578 100644
@@ -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;
 }
Signature · 1 line
2.20.1.7.g153144c
maintainer
#1 lore raw
Quoted 3 lines · Jiapeng Chong

The fuse_valid_size are not used outside the file dir.c, so the modification is defined as static.

Thanks, folded.

Miklos