From: Alexey Dobriyan Date: Fri, 8 Aug 2014 21:21:29 +0000 (-0700) Subject: proc: make proc_subdir_lock static X-Git-Tag: firefly_0821_release~176^2~3441^2~132 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4dcc03fc4553943c8bae086aa826bb75171e82a1;p=firefly-linux-kernel-4.4.55.git proc: make proc_subdir_lock static Signed-off-by: Alexey Dobriyan Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/proc/generic.c b/fs/proc/generic.c index 190862e89880..317b72641ebf 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c @@ -27,7 +27,7 @@ #include "internal.h" -DEFINE_SPINLOCK(proc_subdir_lock); +static DEFINE_SPINLOCK(proc_subdir_lock); static int proc_match(unsigned int len, const char *name, struct proc_dir_entry *de) { diff --git a/fs/proc/internal.h b/fs/proc/internal.h index a38408a1dd84..a17accbd05ee 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h @@ -178,8 +178,6 @@ extern bool proc_fill_cache(struct file *, struct dir_context *, const char *, i /* * generic.c */ -extern spinlock_t proc_subdir_lock; - extern struct dentry *proc_lookup(struct inode *, struct dentry *, unsigned int); extern struct dentry *proc_lookup_de(struct proc_dir_entry *, struct inode *, struct dentry *);