Commit 587d4a17 authored by Helight.Xu's avatar Helight.Xu Committed by Al Viro

some clean up in fs/proc

EXPORT_SYMBOL(proc_symlink);
EXPORT_SYMBOL(proc_mkdir);
EXPORT_SYMBOL(create_proc_entry);
EXPORT_SYMBOL(proc_create_data);
EXPORT_SYMBOL(remove_proc_entry);

Those EXPORT_SYMBOL shouldn't be in fs/proc/root.c,
should be in fs/proc/generic.c.
Signed-off-by: default avatarHelight.Xu <helight.xu@gmail.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 193cf4b9
...@@ -662,6 +662,7 @@ struct proc_dir_entry *proc_symlink(const char *name, ...@@ -662,6 +662,7 @@ struct proc_dir_entry *proc_symlink(const char *name,
} }
return ent; return ent;
} }
EXPORT_SYMBOL(proc_symlink);
struct proc_dir_entry *proc_mkdir_mode(const char *name, mode_t mode, struct proc_dir_entry *proc_mkdir_mode(const char *name, mode_t mode,
struct proc_dir_entry *parent) struct proc_dir_entry *parent)
...@@ -700,6 +701,7 @@ struct proc_dir_entry *proc_mkdir(const char *name, ...@@ -700,6 +701,7 @@ struct proc_dir_entry *proc_mkdir(const char *name,
{ {
return proc_mkdir_mode(name, S_IRUGO | S_IXUGO, parent); return proc_mkdir_mode(name, S_IRUGO | S_IXUGO, parent);
} }
EXPORT_SYMBOL(proc_mkdir);
struct proc_dir_entry *create_proc_entry(const char *name, mode_t mode, struct proc_dir_entry *create_proc_entry(const char *name, mode_t mode,
struct proc_dir_entry *parent) struct proc_dir_entry *parent)
...@@ -728,6 +730,7 @@ struct proc_dir_entry *create_proc_entry(const char *name, mode_t mode, ...@@ -728,6 +730,7 @@ struct proc_dir_entry *create_proc_entry(const char *name, mode_t mode,
} }
return ent; return ent;
} }
EXPORT_SYMBOL(create_proc_entry);
struct proc_dir_entry *proc_create_data(const char *name, mode_t mode, struct proc_dir_entry *proc_create_data(const char *name, mode_t mode,
struct proc_dir_entry *parent, struct proc_dir_entry *parent,
...@@ -762,6 +765,7 @@ struct proc_dir_entry *proc_create_data(const char *name, mode_t mode, ...@@ -762,6 +765,7 @@ struct proc_dir_entry *proc_create_data(const char *name, mode_t mode,
out: out:
return NULL; return NULL;
} }
EXPORT_SYMBOL(proc_create_data);
static void free_proc_entry(struct proc_dir_entry *de) static void free_proc_entry(struct proc_dir_entry *de)
{ {
...@@ -853,3 +857,4 @@ void remove_proc_entry(const char *name, struct proc_dir_entry *parent) ...@@ -853,3 +857,4 @@ void remove_proc_entry(const char *name, struct proc_dir_entry *parent)
de->parent->name, de->name, de->subdir->name); de->parent->name, de->name, de->subdir->name);
pde_put(de); pde_put(de);
} }
EXPORT_SYMBOL(remove_proc_entry);
...@@ -220,9 +220,3 @@ void pid_ns_release_proc(struct pid_namespace *ns) ...@@ -220,9 +220,3 @@ void pid_ns_release_proc(struct pid_namespace *ns)
{ {
mntput(ns->proc_mnt); mntput(ns->proc_mnt);
} }
EXPORT_SYMBOL(proc_symlink);
EXPORT_SYMBOL(proc_mkdir);
EXPORT_SYMBOL(create_proc_entry);
EXPORT_SYMBOL(proc_create_data);
EXPORT_SYMBOL(remove_proc_entry);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment