mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[NETNS]: Compile NET /proc support only if CONFIG_NET is set.
This fix broken compilation for 'allnoconfig'. This was introduced by
Introduced by commit 1218854afa
("[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>
This commit is contained in:
parent
5983a3dff0
commit
0e5f8be138
2 changed files with 4 additions and 0 deletions
|
@ -63,6 +63,7 @@ extern struct list_head *seq_list_start_head(struct list_head *head,
|
|||
extern struct list_head *seq_list_next(void *v, struct list_head *head,
|
||||
loff_t *ppos);
|
||||
|
||||
#ifdef CONFIG_NET
|
||||
struct net;
|
||||
struct seq_net_private {
|
||||
#ifdef CONFIG_NET_NS
|
||||
|
@ -81,6 +82,7 @@ static inline struct net *seq_file_net(struct seq_file *seq)
|
|||
return &init_net;
|
||||
#endif
|
||||
}
|
||||
#endif /* CONFIG_NET */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue