mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
netns: build fix for net_alloc_generic
net_alloc_generic was defined in #ifdef CONFIG_NET_NS, but used unconditionally. Move net_alloc_generic out of #ifdef. Signed-off-by: Clemens Noss <cnoss@gmx.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
486a87f1e5
commit
ebe47d47b7
1 changed files with 4 additions and 4 deletions
|
@ -63,10 +63,6 @@ out_undo:
|
|||
goto out;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NET_NS
|
||||
static struct kmem_cache *net_cachep;
|
||||
static struct workqueue_struct *netns_wq;
|
||||
|
||||
static struct net_generic *net_alloc_generic(void)
|
||||
{
|
||||
struct net_generic *ng;
|
||||
|
@ -80,6 +76,10 @@ static struct net_generic *net_alloc_generic(void)
|
|||
return ng;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NET_NS
|
||||
static struct kmem_cache *net_cachep;
|
||||
static struct workqueue_struct *netns_wq;
|
||||
|
||||
static struct net *net_alloc(void)
|
||||
{
|
||||
struct net *net = NULL;
|
||||
|
|
Loading…
Reference in a new issue