]> git.baikalelectronics.ru Git - kernel.git/commit
net: ignore sysctl_devconf_inherit_init_net without SYSCTL
authorArnd Bergmann <arnd@arndb.de>
Mon, 4 Mar 2019 20:38:03 +0000 (21:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2019 21:14:34 +0000 (13:14 -0800)
commit65c09832f41949e9c4a0d91b9e4fe96155dc279c
tree742a25ce5320613044083249ba3571eb0899f061
parente2be35768b9fa712268045c58c2fe2b009a6c22b
net: ignore sysctl_devconf_inherit_init_net without SYSCTL

When CONFIG_SYSCTL is turned off, we get a link failure for
the newly introduced tuning knob.

net/ipv6/addrconf.o: In function `addrconf_init_net':
addrconf.c:(.text+0x31dc): undefined reference to `sysctl_devconf_inherit_init_net'

Add an IS_ENABLED() check to fall back to the default behavior
(sysctl_devconf_inherit_init_net=0) here.

Fixes: dcd27ebd94a2 ("net: introduce a knob to control whether to inherit devconf config")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Christian Brauner <christian@brauner.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c
net/ipv6/addrconf.c