Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8086cd45 authored by Adrian Bunk's avatar Adrian Bunk Committed by David S. Miller
Browse files

netns: make get_proc_net() static



get_proc_net() can now become static.

Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Acked-by: default avatarPavel Emelyanov <xemul@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cf508b12
Loading
Loading
Loading
Loading
+5 −6
Original line number Original line Diff line number Diff line
@@ -27,6 +27,11 @@
#include "internal.h"
#include "internal.h"




static struct net *get_proc_net(const struct inode *inode)
{
	return maybe_get_net(PDE_NET(PDE(inode)));
}

int seq_open_net(struct inode *ino, struct file *f,
int seq_open_net(struct inode *ino, struct file *f,
		 const struct seq_operations *ops, int size)
		 const struct seq_operations *ops, int size)
{
{
@@ -185,12 +190,6 @@ void proc_net_remove(struct net *net, const char *name)
}
}
EXPORT_SYMBOL_GPL(proc_net_remove);
EXPORT_SYMBOL_GPL(proc_net_remove);


struct net *get_proc_net(const struct inode *inode)
{
	return maybe_get_net(PDE_NET(PDE(inode)));
}
EXPORT_SYMBOL_GPL(get_proc_net);

static __net_init int proc_net_ns_init(struct net *net)
static __net_init int proc_net_ns_init(struct net *net)
{
{
	struct proc_dir_entry *netd, *net_statd;
	struct proc_dir_entry *netd, *net_statd;
+0 −2
Original line number Original line Diff line number Diff line
@@ -305,8 +305,6 @@ static inline struct net *PDE_NET(struct proc_dir_entry *pde)
	return pde->parent->data;
	return pde->parent->data;
}
}


struct net *get_proc_net(const struct inode *inode);

struct proc_maps_private {
struct proc_maps_private {
	struct pid *pid;
	struct pid *pid;
	struct task_struct *task;
	struct task_struct *task;