Skip to contentSkip to conversation

debugfs: make __create_file static

PATCH New Chris Wright 1 participant 1 message Aug 10, 2012 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 debugfs: make __create_file static

It's only used locally, no need to pollute global namespace.

---
 fs/debugfs/inode.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
fs/debugfs/inode.c +3 -3
index 4733eab..2c9fafb 100644
@@ -291,9 +291,9 @@ static struct file_system_type debug_fs_type = {
 	.kill_sb =	kill_litter_super,
 };
 
-struct dentry *__create_file(const char *name, umode_t mode,
-				   struct dentry *parent, void *data,
-				   const struct file_operations *fops)
+static struct dentry *__create_file(const char *name, umode_t mode,
+				    struct dentry *parent, void *data,
+				    const struct file_operations *fops)
 {
 	struct dentry *dentry = NULL;
 	int error;