aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/seq_file.h
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-03-27 17:25:53 -0400
committerDavid S. Miller <davem@davemloft.net>2008-03-27 17:25:53 -0400
commit0e5f8be1388093edc324a78ebf241170b258eba3 (patch)
tree1b5491f78edba6bc3d463e4190deff22f10dff74 /include/linux/seq_file.h
parent5983a3dff0036d7ef6a2139473564f4f3e7b2a11 (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 'include/linux/seq_file.h')
-rw-r--r--include/linux/seq_file.h2
1 files changed, 2 insertions, 0 deletions
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,
63extern struct list_head *seq_list_next(void *v, struct list_head *head, 63extern 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
66struct net; 67struct net;
67struct seq_net_private { 68struct 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