mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
bpf: fix missing bpf_check_uarg_tail_zero in BPF_PROG_TEST_RUN
Commitb0b9395d86("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 <[email protected]> Fixes:b0b9395d86("bpf: support input __sk_buff context in BPF_PROG_TEST_RUN") Signed-off-by: Stanislav Fomichev <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
This commit is contained in:
parent
3daf8e703e
commit
c695865c5c
2 changed files with 29 additions and 9 deletions
|
|
@ -1 +1 @@
|
|||
obj-y := test_run.o
|
||||
obj-$(CONFIG_BPF_SYSCALL) := test_run.o
|
||||
|
|
|
|||
Loading…
Reference in a new issue