diff options
author | Denis V. Lunev <den@openvz.org> | 2008-03-27 17:25:53 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-27 17:25:53 -0400 |
commit | 0e5f8be1388093edc324a78ebf241170b258eba3 (patch) | |
tree | 1b5491f78edba6bc3d463e4190deff22f10dff74 /fs/proc/proc_net.c | |
parent | 5983a3dff0036d7ef6a2139473564f4f3e7b2a11 (diff) |
[NETNS]: Compile NET /proc support only if CONFIG_NET is set.
This fix broken compilation for 'allnoconfig'. This was introduced by
Introduced by commit 1218854afa6f659be90b748cf1bc7badee954a35 ("[NET]
NETNS: Omit seq_net_private->net without CONFIG_NET_NS.")
Signed-off-by: Denis V. Lunev <den@openvz.org>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/proc/proc_net.c')
-rw-r--r-- | fs/proc/proc_net.c | 2 |
1 files changed, 2 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 */ | ||