summaryrefslogtreecommitdiffstats
path: root/kernel/kcsan/debugfs.c
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2020-11-15 23:45:09 +0100
committerJakub Kicinski <kuba@kernel.org>2020-11-17 17:02:03 -0800
commitc09c8a27b9baa417864b9adc3228b10ae5eeec93 (patch)
treee21b3702dc1bb7eb66a8b250a63f781eeabce8c7 /kernel/kcsan/debugfs.c
parent93be52612431e71ee8cb980ef11468997857e4c4 (diff)
downloadlinux-c09c8a27b9baa417864b9adc3228b10ae5eeec93.tar.bz2
ipv4: use IS_ENABLED instead of ifdef
Checking for ifdef CONFIG_x fails if CONFIG_x=m. Use IS_ENABLED instead, which is true for both built-ins and modules. Otherwise, a > ip -4 route add 1.2.3.4/32 via inet6 fe80::2 dev eth1 fails with the message "Error: IPv6 support not enabled in kernel." if CONFIG_IPV6 is `m`. In the spirit of b8127113d01e53adba15b41aefd37b90ed83d631. Fixes: d15662682db2 ("ipv4: Allow ipv6 gateway with ipv4 routes") Cc: Kim Phillips <kim.phillips@arm.com> Signed-off-by: Florian Klink <flokli@flokli.de> Reviewed-by: David Ahern <dsahern@kernel.org> Link: https://lore.kernel.org/r/20201115224509.2020651-1-flokli@flokli.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'kernel/kcsan/debugfs.c')
0 files changed, 0 insertions, 0 deletions