Commit 0e5f8be1 authored by Denis V. Lunev's avatar Denis V. Lunev Committed by David S. Miller
Browse files

[NETNS]: Compile NET /proc support only if CONFIG_NET is set.

This fix broken compilation for 'allnoconfig'. This was introduced by
Introduced by commit 1218854a

NETNS: Omit seq_net_private->net without CONFIG_NET_NS.")
Signed-off-by: default avatarDenis V. Lunev <>
Acked-by: default avatarYOSHIFUJI Hideaki <>
Signed-off-by: default avatarDavid S. Miller <>
parent 5983a3df
......@@ -51,6 +51,7 @@ int seq_open_net(struct inode *ino, struct file *f,
int seq_release_net(struct inode *ino, struct file *f)
struct seq_file *seq;
......@@ -218,3 +219,4 @@ int __init proc_net_init(void)
return register_pernet_subsys(&proc_net_ns_ops);
#endif /* CONFIG_NET */
......@@ -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);
struct net;
struct seq_net_private {
......@@ -81,6 +82,7 @@ static inline struct net *seq_file_net(struct seq_file *seq)
return &init_net;
#endif /* CONFIG_NET */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment