summaryrefslogtreecommitdiff
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-09-23 19:06:12 +0300
committerEric W. Biederman <ebiederm@xmission.com>2016-09-23 21:39:43 +0300
commit2ed6afdee798658fe3c33b50c4a79d1bde45f1d8 (patch)
tree5af38ce57575d8353dc1313957f97c96c2fb972c /fs/namespace.c
parent213b067ce314f9d7e72307c7036ba3cd285b80da (diff)
downloadlinux-2ed6afdee798658fe3c33b50c4a79d1bde45f1d8.tar.xz
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 <arnd@arndb.de> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'fs/namespace.c')
0 files changed, 0 insertions, 0 deletions