Commit 36ac3135 authored by Daniel Lezcano's avatar Daniel Lezcano Committed by David S. Miller

[NETNS]: Fix export symbols.

Add the appropriate EXPORT_SYMBOLS for proc_net_create,
proc_net_fops_create and proc_net_remove to fix errors when
compiling allmodconfig
Signed-off-by: default avatarMark Nelson <markn@au1.ibm.com>
Acked-by: default avatarBenjamin Thery <benjamin.thery@bull.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8f4c1f9b
...@@ -31,6 +31,7 @@ struct proc_dir_entry *proc_net_create(struct net *net, ...@@ -31,6 +31,7 @@ struct proc_dir_entry *proc_net_create(struct net *net,
{ {
return create_proc_info_entry(name,mode, net->proc_net, get_info); return create_proc_info_entry(name,mode, net->proc_net, get_info);
} }
EXPORT_SYMBOL_GPL(proc_net_create);
struct proc_dir_entry *proc_net_fops_create(struct net *net, struct proc_dir_entry *proc_net_fops_create(struct net *net,
const char *name, mode_t mode, const struct file_operations *fops) const char *name, mode_t mode, const struct file_operations *fops)
...@@ -42,12 +43,13 @@ struct proc_dir_entry *proc_net_fops_create(struct net *net, ...@@ -42,12 +43,13 @@ struct proc_dir_entry *proc_net_fops_create(struct net *net,
res->proc_fops = fops; res->proc_fops = fops;
return res; return res;
} }
EXPORT_SYMBOL_GPL(proc_net_fops_create);
void proc_net_remove(struct net *net, const char *name) void proc_net_remove(struct net *net, const char *name)
{ {
remove_proc_entry(name, net->proc_net); remove_proc_entry(name, net->proc_net);
} }
EXPORT_SYMBOL_GPL(proc_net_remove);
static struct proc_dir_entry *proc_net_shadow; static struct proc_dir_entry *proc_net_shadow;
......
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