proc: Move PDE_NET() to fs/proc/proc_net.c
authorDavid Howells <dhowells@redhat.com>
Fri, 12 Apr 2013 01:09:03 +0000 (02:09 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 1 May 2013 21:29:40 +0000 (17:29 -0400)
Move PDE_NET() to fs/proc/proc_net.c as that's where the only user is.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/proc/proc_net.c
include/linux/proc_fs.h

index b4ac657..986e832 100644 (file)
 
 #include "internal.h"
 
+static inline struct net *PDE_NET(struct proc_dir_entry *pde)
+{
+       return pde->parent->data;
+}
 
 static struct net *get_proc_net(const struct inode *inode)
 {
index 8f7d8f2..3377224 100644 (file)
@@ -187,11 +187,6 @@ static inline void *PDE_DATA(const struct inode *inode)
        return PROC_I(inode)->pde->data;
 }
 
-static inline struct net *PDE_NET(struct proc_dir_entry *pde)
-{
-       return pde->parent->data;
-}
-
 #include <linux/signal.h>
 
 void render_sigset_t(struct seq_file *m, const char *header, sigset_t *set);