summaryrefslogtreecommitdiffstats
path: root/scripts/cc-can-link.sh
diff options
context:
space:
mode:
authorMasahiro Yamada2018-06-26 05:55:35 +0200
committerDavid S. Miller2018-06-28 06:36:39 +0200
commit88e85a7daf8e21f2d6cb054374d480c540725cde (patch)
tree6938c104fc0b85c416d273ed72598677add55e29 /scripts/cc-can-link.sh
parenthinic: reset irq affinity before freeing irq (diff)
downloadkernel-qcow2-linux-88e85a7daf8e21f2d6cb054374d480c540725cde.tar.gz
kernel-qcow2-linux-88e85a7daf8e21f2d6cb054374d480c540725cde.tar.xz
kernel-qcow2-linux-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 'scripts/cc-can-link.sh')
-rwxr-xr-xscripts/cc-can-link.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cc-can-link.sh b/scripts/cc-can-link.sh
index 208eb2825dab..6efcead31989 100755
--- a/scripts/cc-can-link.sh
+++ b/scripts/cc-can-link.sh
@@ -1,7 +1,7 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
-cat << "END" | $@ -x c - -o /dev/null >/dev/null 2>&1 && echo "y"
+cat << "END" | $@ -x c - -o /dev/null >/dev/null 2>&1
#include <stdio.h>
int main(void)
{