proc: make proc_subdir_lock static
PATCH 1/1 proc: make proc_subdir_lock static
Signed-off-by Alexey Dobriyan <[email protected]>
---
fs/proc/generic.c | 2 +- fs/proc/internal.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-)
fs/proc/generic.c +1 -1
@@ -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) {
fs/proc/internal.h +0 -2
@@ -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 *);