diff options
-rw-r--r-- | fs/proc/proc_net.c | 4 | ||||
-rw-r--r-- | include/linux/proc_fs.h | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/fs/proc/proc_net.c b/fs/proc/proc_net.c index b4ac6572474f..986e83220d56 100644 --- a/fs/proc/proc_net.c +++ b/fs/proc/proc_net.c | |||
@@ -26,6 +26,10 @@ | |||
26 | 26 | ||
27 | #include "internal.h" | 27 | #include "internal.h" |
28 | 28 | ||
29 | static inline struct net *PDE_NET(struct proc_dir_entry *pde) | ||
30 | { | ||
31 | return pde->parent->data; | ||
32 | } | ||
29 | 33 | ||
30 | static struct net *get_proc_net(const struct inode *inode) | 34 | static struct net *get_proc_net(const struct inode *inode) |
31 | { | 35 | { |
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index 8f7d8f24141a..33772248a3b1 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) | |||
187 | return PROC_I(inode)->pde->data; | 187 | return PROC_I(inode)->pde->data; |
188 | } | 188 | } |
189 | 189 | ||
190 | static inline struct net *PDE_NET(struct proc_dir_entry *pde) | ||
191 | { | ||
192 | return pde->parent->data; | ||
193 | } | ||
194 | |||
195 | #include <linux/signal.h> | 190 | #include <linux/signal.h> |
196 | 191 | ||
197 | void render_sigset_t(struct seq_file *m, const char *header, sigset_t *set); | 192 | void render_sigset_t(struct seq_file *m, const char *header, sigset_t *set); |