aboutsummaryrefslogtreecommitdiffstats
path: root/net/bpfilter/Kconfig
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-06-26 12:55:35 +0900
committerDavid S. Miller <davem@davemloft.net>2018-06-28 13:36:39 +0900
commit88e85a7daf8e21f2d6cb054374d480c540725cde (patch)
tree6938c104fc0b85c416d273ed72598677add55e29 /net/bpfilter/Kconfig
parenthinic: reset irq affinity before freeing irq (diff)
downloadlinux-dev-88e85a7daf8e21f2d6cb054374d480c540725cde.tar.xz
linux-dev-88e85a7daf8e21f2d6cb054374d480c540725cde.zip
bpfilter: check compiler capability in Kconfig
With the brand-new syntax extension of Kconfig, we can directly check the compiler capability in the configuration phase. If the cc-can-link.sh fails, the BPFILTER_UMH is automatically hidden by the dependency. I also deleted 'default n', which is no-op. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/bpfilter/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bpfilter/Kconfig b/net/bpfilter/Kconfig
index a948b072c28f..76deb6615883 100644
--- a/net/bpfilter/Kconfig
+++ b/net/bpfilter/Kconfig
@@ -1,6 +1,5 @@
menuconfig BPFILTER
bool "BPF based packet filtering framework (BPFILTER)"
- default n
depends on NET && BPF && INET
help
This builds experimental bpfilter framework that is aiming to
@@ -9,6 +8,7 @@ menuconfig BPFILTER
if BPFILTER
config BPFILTER_UMH
tristate "bpfilter kernel module with user mode helper"
+ depends on $(success,$(srctree)/scripts/cc-can-link.sh $(CC))
default m
help
This builds bpfilter kernel module with embedded user mode helper