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>

authored by Clemens Noss and committed by David S. Miller ebe47d47 486a87f1

+4 -4
+4 -4
net/core/net_namespace.c
··· 63 goto out; 64 } 65 66 - #ifdef CONFIG_NET_NS 67 - static struct kmem_cache *net_cachep; 68 - static struct workqueue_struct *netns_wq; 69 - 70 static struct net_generic *net_alloc_generic(void) 71 { 72 struct net_generic *ng; ··· 75 76 return ng; 77 } 78 79 static struct net *net_alloc(void) 80 {
··· 63 goto out; 64 } 65 66 static struct net_generic *net_alloc_generic(void) 67 { 68 struct net_generic *ng; ··· 79 80 return ng; 81 } 82 + 83 + #ifdef CONFIG_NET_NS 84 + static struct kmem_cache *net_cachep; 85 + static struct workqueue_struct *netns_wq; 86 87 static struct net *net_alloc(void) 88 {