aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/init_task.h
diff options
context:
space:
mode:
authorDaniel Lezcano <dlezcano@fr.ibm.com>2007-09-13 03:16:29 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:49:21 -0400
commit4fabcd7118162e36eea5c53e8895ecc13762bef3 (patch)
tree29a1b009e9bbd52bcce413f9b06c892b09783ccd /include/linux/init_task.h
parente08b09983fe9cf379faf1aefdf9164268d4610e7 (diff)
[NETNS]: Fix allnoconfig compilation error.
When CONFIG_NET=no, init_net is unresolved because net_namespace.c is not compiled and the include pull init_net definition. This problem was very similar with the ipc namespace where the kernel can be compiled with SYSV ipc out. This patch fix that defining a macro which simply remove init_net initialization from nsproxy namespace aggregator. Compiled and booted on qemu-i386 with CONFIG_NET=no and CONFIG_NET=yes. Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/init_task.h')
-rw-r--r--include/linux/init_task.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h
index e2c1ffcff62c..513bc3e489f0 100644
--- a/include/linux/init_task.h
+++ b/include/linux/init_task.h
@@ -79,7 +79,7 @@ extern struct nsproxy init_nsproxy;
79 .nslock = __SPIN_LOCK_UNLOCKED(nsproxy.nslock), \ 79 .nslock = __SPIN_LOCK_UNLOCKED(nsproxy.nslock), \
80 .uts_ns = &init_uts_ns, \ 80 .uts_ns = &init_uts_ns, \
81 .mnt_ns = NULL, \ 81 .mnt_ns = NULL, \
82 .net_ns = &init_net, \ 82 INIT_NET_NS(net_ns) \
83 INIT_IPC_NS(ipc_ns) \ 83 INIT_IPC_NS(ipc_ns) \
84 .user_ns = &init_user_ns, \ 84 .user_ns = &init_user_ns, \
85} 85}