Skip to contentSkip to conversation

fuse: make dentry_tree_work static

PATCH Applied Ben Dooks 2 participants 2 messages Jun 23 – Aug 17 FUSE filesystem core

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 fuse: make dentry_tree_work static

The dentry_tree_work is not exported, so make it static
to remove the followign sparse warning:
fs/fuse/dir.c:37:21: warning: symbol 'dentry_tree_work' was not declared. Should it be static?

---
 fs/fuse/dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fuse/dir.c +1 -1
index 0e2a1039fa43..1fed11c0ed9a 100644
@@ -34,7 +34,7 @@ struct dentry_bucket {
 #define FUSE_HASH_BITS	5
 #define FUSE_HASH_SIZE	(1 << FUSE_HASH_BITS)
 static struct dentry_bucket dentry_hash[FUSE_HASH_SIZE];
-struct delayed_work dentry_tree_work;
+static struct delayed_work dentry_tree_work;
 
 /* Minimum invalidation work queue frequency */
 #define FUSE_DENTRY_INVAL_FREQ_MIN 5
Signature · 1 line
2.37.2.352.g3c44437643
maintainer Applied
#1 lore raw
Quoted 6 lines · Ben Dooks

The dentry_tree_work is not exported, so make it static
to remove the followign sparse warning:
fs/fuse/dir.c:37:21: warning: symbol 'dentry_tree_work' was not declared. Should it be static?

Applied, thanks.

Miklos