linux-mainline/tools
David Ahern 1b6687e31a vrf: Handle CONFIG_SYSCTL not set
Randy reported compile failure when CONFIG_SYSCTL is not set/enabled:

ERROR: modpost: "sysctl_vals" [drivers/net/vrf.ko] undefined!

Fix by splitting out the sysctl init and cleanup into helpers that
can be set to do nothing when CONFIG_SYSCTL is disabled. In addition,
move vrf_strict_mode and vrf_strict_mode_change to above
vrf_shared_table_handler (code move only) and wrap all of it
in the ifdef CONFIG_SYSCTL.

Update the strict mode tests to check for the existence of the
/proc/sys entry.

Fixes: 33306f1aaf ("vrf: add sysctl parameter for strict mode")
Cc: Andrea Mayer <andrea.mayer@uniroma2.it>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: David Ahern <dsahern@kernel.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-07-23 17:51:04 -07:00
..
accounting
arch
bootconfig
bpf bpftool: Use only nftw for file tree parsing 2020-07-21 23:42:56 +02:00
build
cgroup
debugging
edid
firewire
firmware
gpio
hv
iio
include Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2020-07-22 12:35:33 -07:00
io_uring
kvm/kvm_stat
laptop
leds
lib libbpf bpf_helpers: Use __builtin_offsetof for offsetof 2020-07-21 13:26:25 -07:00
memory-model
nfsd
objtool
pci
pcmcia
perf net: remove compat_sys_{get,set}sockopt 2020-07-19 18:16:40 -07:00
power
scripts
spi
testing vrf: Handle CONFIG_SYSCTL not set 2020-07-23 17:51:04 -07:00
thermal/tmon
time
usb
virtio
vm
wmi
Makefile