diff --git a/fs/proc/proc_net.c b/fs/proc/proc_net.c
index b4ac6572474f7e4e7dafa5fde369f773a3b55cc2..986e83220d56e57524b533acb8e6a52a6cffe612 100644
--- a/fs/proc/proc_net.c
+++ b/fs/proc/proc_net.c
@@ -26,6 +26,10 @@
 
 #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)
 {
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h
index 8f7d8f24141abc1a56c3ad23a6f77b9765266cb8..33772248a3b158b410b118e421f9ed5924ee11ea 100644
--- a/include/linux/proc_fs.h
+++ b/include/linux/proc_fs.h
@@ -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);