Skip to content

Commit

Permalink
[NETNS]: Fix export symbols.
Browse files Browse the repository at this point in the history
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: Mark Nelson <[email protected]>
Acked-by: Benjamin Thery <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Daniel Lezcano authored and David S. Miller committed Oct 10, 2007
1 parent 8f4c1f9 commit 36ac313
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/proc/proc_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
EXPORT_SYMBOL_GPL(proc_net_create);

struct proc_dir_entry *proc_net_fops_create(struct net *net,
const char *name, mode_t mode, const struct file_operations *fops)
Expand All @@ -42,12 +43,13 @@ struct proc_dir_entry *proc_net_fops_create(struct net *net,
res->proc_fops = fops;
return res;
}
EXPORT_SYMBOL_GPL(proc_net_fops_create);

void proc_net_remove(struct net *net, const char *name)
{
remove_proc_entry(name, net->proc_net);
}

EXPORT_SYMBOL_GPL(proc_net_remove);

static struct proc_dir_entry *proc_net_shadow;

Expand Down

0 comments on commit 36ac313

Please sign in to comment.