mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04: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 <[email protected]>
Acked-by: YOSHIFUJI Hideaki <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
5983a3dff0
commit
0e5f8be138
2 changed files with 4 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ int seq_open_net(struct inode *ino, struct file *f,
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(seq_open_net);
|
||||
|
||||
#ifdef CONFIG_NET
|
||||
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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue