mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[NETNS]: Declare init_net even without CONFIG_NET defined.
This does not look good, but there is no other choice. The compilation without CONFIG_NET is broken and can not be fixed with ease. After that there is no need for the following commits:1567ca7eec
3edf8fa5cc
2d38f9a4f8
Revert them. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e1ec1b8ccd
commit
a4aa834a91
3 changed files with 2 additions and 7 deletions
|
@ -60,11 +60,12 @@ struct net {
|
|||
};
|
||||
|
||||
|
||||
#ifdef CONFIG_NET
|
||||
#include <linux/seq_file_net.h>
|
||||
|
||||
/* Init's network namespace */
|
||||
extern struct net init_net;
|
||||
|
||||
#ifdef CONFIG_NET
|
||||
#define INIT_NET_NS(net_ns) .net_ns = &init_net,
|
||||
|
||||
extern struct net *copy_net_ns(unsigned long flags, struct net *net_ns);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue