]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix build without CONFIG_SYSCTL definition
authorMahesh Bandewar <maheshb@google.com>
Fri, 18 Sep 2020 05:08:32 +0000 (22:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2020 21:14:05 +0000 (14:14 -0700)
commitc0f144ab08ff8c36193e687480ad1aed22cb10eb
tree73f7d0204b839f3b0c92ae917c276dbf0567da16
parent227f5149eb90286b320124f4531af87a0b4138b8
net: fix build without CONFIG_SYSCTL definition

Earlier commit c44dfb55a4c0 ("net: add option to not create fall-back
tunnels in root-ns as well") removed the CONFIG_SYSCTL to enable the
kernel-commandline to work. However, this variable gets defined only
when CONFIG_SYSCTL option is selected.

With this change the behavior would default to creating fall-back
tunnels in all namespaces when CONFIG_SYSCTL is not selected and
the kernel commandline option will be ignored.

Fixes: c44dfb55a4c0 ("net: add option to not create fall-back tunnels in root-ns as well")
Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h