fsnotify: move declaration of fsnotify_mark_connector_cachep to fsnotify.h
authorBen Dooks <ben.dooks@codethink.co.uk>
Tue, 15 Oct 2019 13:25:18 +0000 (14:25 +0100)
committerJan Kara <jack@suse.cz>
Thu, 17 Oct 2019 08:31:12 +0000 (10:31 +0200)
Move fsnotify_mark_connector_cachep to fsnotify.h to properly
share it with the user in mark.c and avoid the following warning
from sparse:

fs/notify/mark.c:82:19: warning: symbol 'fsnotify_mark_connector_cachep' was not declared. Should it be static?

Link: https://lore.kernel.org/r/20191015132518.21819-1-ben.dooks@codethink.co.uk
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fsnotify.c
fs/notify/fsnotify.h

index 2ecef61..3e77b72 100644 (file)
@@ -381,8 +381,6 @@ out:
 }
 EXPORT_SYMBOL_GPL(fsnotify);
 
-extern struct kmem_cache *fsnotify_mark_connector_cachep;
-
 static __init int fsnotify_init(void)
 {
        int ret;
index f346282..ff2063e 100644 (file)
@@ -65,4 +65,6 @@ extern void __fsnotify_update_child_dentry_flags(struct inode *inode);
 extern struct fsnotify_event_holder *fsnotify_alloc_event_holder(void);
 extern void fsnotify_destroy_event_holder(struct fsnotify_event_holder *holder);
 
+extern struct kmem_cache *fsnotify_mark_connector_cachep;
+
 #endif /* __FS_NOTIFY_FSNOTIFY_H_ */