aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipx
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2007-11-01 00:44:50 -0700
committerDavid S. Miller <davem@davemloft.net>2007-11-01 00:44:50 -0700
commit6a1a3b9f686bb04820a232cc1657ef2c45670709 (patch)
treed59d63b516d57cfa825592b893c9fd3bff7b21b7 /net/ipx
parent[NET]: Relax the reference counting of init_net_ns (diff)
downloadlinux-dev-6a1a3b9f686bb04820a232cc1657ef2c45670709.tar.xz
linux-dev-6a1a3b9f686bb04820a232cc1657ef2c45670709.zip
[NET]: Hide the dead code in the net_namespace.c
The namespace creation/destruction code is never called if the CONFIG_NET_NS is n, so it's OK to move it under appropriate ifdef. The copy_net_ns() in the "n" case checks for flags and returns -EINVAL when new net ns is requested. In a perfect world this stub must be in net_namespace.h, but this function need to know the CLONE_NEWNET value and thus requires sched.h. On the other hand this header is to be injected into almost every .c file in the networking code, and making all this code depend on the sched.h is a suicidal attempt. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipx')
0 files changed, 0 insertions, 0 deletions