summaryrefslogtreecommitdiffstats
path: root/net/bpf
diff options
context:
space:
mode:
authorStanislav Fomichev <sdf@google.com>2019-04-11 09:12:02 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2019-04-11 21:50:20 +0200
commitc695865c5c9803f14eef2c99d8a49d9ad60a3383 (patch)
tree27cdaa763a5a4fd5c5976081df63f6c5c1328e73 /net/bpf
parent3daf8e703ec3dcf73a27a7dcabbac152793eb114 (diff)
downloadlinux-stable-c695865c5c9803f14eef2c99d8a49d9ad60a3383.tar.gz
linux-stable-c695865c5c9803f14eef2c99d8a49d9ad60a3383.tar.bz2
linux-stable-c695865c5c9803f14eef2c99d8a49d9ad60a3383.zip
bpf: fix missing bpf_check_uarg_tail_zero in BPF_PROG_TEST_RUN
Commit b0b9395d865e ("bpf: support input __sk_buff context in BPF_PROG_TEST_RUN") started using bpf_check_uarg_tail_zero in BPF_PROG_TEST_RUN. However, bpf_check_uarg_tail_zero is not defined for !CONFIG_BPF_SYSCALL: net/bpf/test_run.c: In function ‘bpf_ctx_init’: net/bpf/test_run.c:142:9: error: implicit declaration of function ‘bpf_check_uarg_tail_zero’ [-Werror=implicit-function-declaration] err = bpf_check_uarg_tail_zero(data_in, max_size, size); ^~~~~~~~~~~~~~~~~~~~~~~~ Let's not build net/bpf/test_run.c when CONFIG_BPF_SYSCALL is not set. Reported-by: kbuild test robot <lkp@intel.com> Fixes: b0b9395d865e ("bpf: support input __sk_buff context in BPF_PROG_TEST_RUN") Signed-off-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'net/bpf')
-rw-r--r--net/bpf/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bpf/Makefile b/net/bpf/Makefile
index 27b2992a0692..b0ca361742e4 100644
--- a/net/bpf/Makefile
+++ b/net/bpf/Makefile
@@ -1 +1 @@
-obj-y := test_run.o
+obj-$(CONFIG_BPF_SYSCALL) := test_run.o