diff options
-rw-r--r-- | fs/proc/proc_net.c | 2 | ||||
-rw-r--r-- | include/linux/seq_file.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/fs/proc/proc_net.c b/fs/proc/proc_net.c index 13cd7835d0df..7034facf8b8f 100644 --- a/fs/proc/proc_net.c +++ b/fs/proc/proc_net.c | |||
@@ -51,6 +51,7 @@ int seq_open_net(struct inode *ino, struct file *f, | |||
51 | } | 51 | } |
52 | EXPORT_SYMBOL_GPL(seq_open_net); | 52 | EXPORT_SYMBOL_GPL(seq_open_net); |
53 | 53 | ||
54 | #ifdef CONFIG_NET | ||
54 | int seq_release_net(struct inode *ino, struct file *f) | 55 | int seq_release_net(struct inode *ino, struct file *f) |
55 | { | 56 | { |
56 | struct seq_file *seq; | 57 | struct seq_file *seq; |
@@ -218,3 +219,4 @@ int __init proc_net_init(void) | |||
218 | 219 | ||
219 | return register_pernet_subsys(&proc_net_ns_ops); | 220 | return register_pernet_subsys(&proc_net_ns_ops); |
220 | } | 221 | } |
222 | #endif /* CONFIG_NET */ | ||
diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h index d870a8253769..5da70c3f4417 100644 --- a/include/linux/seq_file.h +++ b/include/linux/seq_file.h | |||
@@ -63,6 +63,7 @@ extern struct list_head *seq_list_start_head(struct list_head *head, | |||
63 | extern struct list_head *seq_list_next(void *v, struct list_head *head, | 63 | extern struct list_head *seq_list_next(void *v, struct list_head *head, |
64 | loff_t *ppos); | 64 | loff_t *ppos); |
65 | 65 | ||
66 | #ifdef CONFIG_NET | ||
66 | struct net; | 67 | struct net; |
67 | struct seq_net_private { | 68 | struct seq_net_private { |
68 | #ifdef CONFIG_NET_NS | 69 | #ifdef CONFIG_NET_NS |
@@ -81,6 +82,7 @@ static inline struct net *seq_file_net(struct seq_file *seq) | |||
81 | return &init_net; | 82 | return &init_net; |
82 | #endif | 83 | #endif |
83 | } | 84 | } |
85 | #endif /* CONFIG_NET */ | ||
84 | 86 | ||
85 | #endif | 87 | #endif |
86 | #endif | 88 | #endif |