net: fix get_net_ns_by_fd for !CONFIG_NET_NS
commit956c920786694f51601a0ef7ee12956fd6aa216e
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 12 May 2011 03:51:13 +0000 (12 13:51 +1000)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 24 May 2011 22:30:51 +0000 (24 15:30 -0700)
tree3d90cca04df011fbe01bdffb589e941b168ea550
parent62ca24baf1417e56fd2ae4ff07adfe7f6a2e42fc
net: fix get_net_ns_by_fd for !CONFIG_NET_NS

After merging the final tree, today's linux-next build (powerpc
ppc44x_defconfig) failed like this:

net/built-in.o: In function `get_net_ns_by_fd':
(.text+0x11976): undefined reference to `netns_operations'
net/built-in.o: In function `get_net_ns_by_fd':
(.text+0x1197a): undefined reference to `netns_operations'

netns_operations is only available if CONFIG_NET_NS is set ...

Caused by commit f063052947f7 ("net: Allow setting the network namespace
by fd").

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
net/core/net_namespace.c