aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2007-11-01 03:45:59 -0400
committerDavid S. Miller <davem@davemloft.net>2007-11-01 03:45:59 -0400
commit1a2ee93d281d00cc6e2db1c306032a105d2c9474 (patch)
treee73bcb8a5af17095feb97b195728afccaa878358 /net/core
parent6a1a3b9f686bb04820a232cc1657ef2c45670709 (diff)
[NET]: Mark the setup_net as __net_init
The setup_net is called for the init net namespace only (int the CONFIG_NET_NS=n of course) from the __init function, so mark it as __net_init to disappear with the caller after the boot. Yet again, in the perfect world this has to be under #ifdef CONFIG_NET_NS, but it isn't guaranteed that every subsystem is registered *after* the init_net_ns is set up. After we are sure, that we don't start registering them before the init net setup, we'll be able to move this code under the ifdef. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/net_namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c
index d5bf8b28bbf4..a044e2d9a8f0 100644
--- a/net/core/net_namespace.c
+++ b/net/core/net_namespace.c
@@ -25,7 +25,7 @@ EXPORT_SYMBOL_GPL(init_net);
25/* 25/*
26 * setup_net runs the initializers for the network namespace object. 26 * setup_net runs the initializers for the network namespace object.
27 */ 27 */
28static int setup_net(struct net *net) 28static __net_init int setup_net(struct net *net)
29{ 29{
30 /* Must be called with net_mutex held */ 30 /* Must be called with net_mutex held */
31 struct pernet_operations *ops; 31 struct pernet_operations *ops;