inotify_user.c: make local symbol static
Subsystems (2)
PATCH 1/1 inotify_user.c: make local symbol static
inotify_user.c: make local symbol static
The symbol inotify_max_user_watches is only used locally in this file. Make it static to prevent the following sparse warning:
warning: symbol 'inotify_max_user_watches ' was not declared. Should it be static?
Signed-off-by H Hartley Sweeten <[email protected]>
Cc John McCutchan <[email protected]>
Cc Robert Love <[email protected]>
Cc Eric Paris <[email protected]>
---
fs/notify/inotify/inotify_user.c +1 -1
@@ -50,7 +50,7 @@ static struct vfsmount *inotify_mnt __read_mostly;/* these are configurable via /proc/sys/fs/inotify/ */ static int inotify_max_user_instances__read_mostly ;static int inotify_max_queued_events__read_mostly ; -int inotify_max_user_watches__read_mostly ; +static int inotify_max_user_watches__read_mostly ;static struct kmem_cache *inotify_inode_mark_cachep__read_mostly ;struct kmem_cache *event_priv_cachep__read_mostly ;