Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fsnotify: move declaration of fsnotify_mark_connector_cachep to fsnotify.h

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>

authored by

Ben Dooks and committed by
Jan Kara
4a0b20be cc3a7bfe

+2 -2
-2
fs/notify/fsnotify.c
··· 381 381 } 382 382 EXPORT_SYMBOL_GPL(fsnotify); 383 383 384 - extern struct kmem_cache *fsnotify_mark_connector_cachep; 385 - 386 384 static __init int fsnotify_init(void) 387 385 { 388 386 int ret;
+2
fs/notify/fsnotify.h
··· 65 65 extern struct fsnotify_event_holder *fsnotify_alloc_event_holder(void); 66 66 extern void fsnotify_destroy_event_holder(struct fsnotify_event_holder *holder); 67 67 68 + extern struct kmem_cache *fsnotify_mark_connector_cachep; 69 + 68 70 #endif /* __FS_NOTIFY_FSNOTIFY_H_ */