summaryrefslogtreecommitdiffstats
path: root/mm/cleancache.c
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@kernel.org>2020-07-23 17:23:09 -0600
committerDavid S. Miller <davem@davemloft.net>2020-07-23 17:51:04 -0700
commit1b6687e31a2df9fbdb12d25c1d1d372777bf96a8 (patch)
tree35ec2b02315579a13fab4f8a7ed123af53aa05aa /mm/cleancache.c
parent5df5661a1387e829c901d009cdd1fccc376cdb74 (diff)
downloadlinux-1b6687e31a2df9fbdb12d25c1d1d372777bf96a8.tar.bz2
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: 33306f1aaf82 ("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>
Diffstat (limited to 'mm/cleancache.c')
0 files changed, 0 insertions, 0 deletions