aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2016-09-23 16:06:12 +0000
committerEric W. Biederman <[email protected]>2016-09-23 18:39:43 +0000
commit2ed6afdee798658fe3c33b50c4a79d1bde45f1d8 (patch)
tree5af38ce57575d8353dc1313957f97c96c2fb972c /net/switchdev/switchdev.c
parentnsfs: Simplify __ns_get_path (diff)
downloadkernel-2ed6afdee798658fe3c33b50c4a79d1bde45f1d8.tar.gz
kernel-2ed6afdee798658fe3c33b50c4a79d1bde45f1d8.zip
netns: move {inc,dec}_net_namespaces into #ifdef
With the newly enforced limit on the number of namespaces, we get a build warning if CONFIG_NETNS is disabled: net/core/net_namespace.c:273:13: error: 'dec_net_namespaces' defined but not used [-Werror=unused-function] net/core/net_namespace.c:268:24: error: 'inc_net_namespaces' defined but not used [-Werror=unused-function] This moves the two added functions inside the #ifdef that guards their callers. Fixes: 703286608a22 ("netns: Add a limit on the number of net namespaces") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Eric W. Biederman <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions