Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netns: make get_proc_net() static

get_proc_net() can now become static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Adrian Bunk and committed by
David S. Miller
8086cd45 cf508b12

+5 -8
+5 -6
fs/proc/proc_net.c
··· 27 27 #include "internal.h" 28 28 29 29 30 + static struct net *get_proc_net(const struct inode *inode) 31 + { 32 + return maybe_get_net(PDE_NET(PDE(inode))); 33 + } 34 + 30 35 int seq_open_net(struct inode *ino, struct file *f, 31 36 const struct seq_operations *ops, int size) 32 37 { ··· 189 184 remove_proc_entry(name, net->proc_net); 190 185 } 191 186 EXPORT_SYMBOL_GPL(proc_net_remove); 192 - 193 - struct net *get_proc_net(const struct inode *inode) 194 - { 195 - return maybe_get_net(PDE_NET(PDE(inode))); 196 - } 197 - EXPORT_SYMBOL_GPL(get_proc_net); 198 187 199 188 static __net_init int proc_net_ns_init(struct net *net) 200 189 {
-2
include/linux/proc_fs.h
··· 305 305 return pde->parent->data; 306 306 } 307 307 308 - struct net *get_proc_net(const struct inode *inode); 309 - 310 308 struct proc_maps_private { 311 309 struct pid *pid; 312 310 struct task_struct *task;