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>
}
EXPORT_SYMBOL_GPL(seq_open_net);
+#ifdef CONFIG_NET
int seq_release_net(struct inode *ino, struct file *f)
{
struct seq_file *seq;
return register_pernet_subsys(&proc_net_ns_ops);
}
+#endif /* CONFIG_NET */
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
return &init_net;
#endif
}
+#endif /* CONFIG_NET */
#endif
#endif