Home
last modified time | relevance | path

Searched hist:"2 ed6afdee798658fe3c33b50c4a79d1bde45f1d8" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/core/
H A Dnet_namespace.cdiff 2ed6afdee798658fe3c33b50c4a79d1bde45f1d8 Fri Sep 23 11:06:12 CDT 2016 Arnd Bergmann <arnd@arndb.de> 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>