]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: bpf: fix urandom_read build issue
authorAnders Roxell <anders.roxell@linaro.org>
Fri, 8 Jun 2018 06:51:27 +0000 (08:51 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 11 Jun 2018 10:55:56 +0000 (12:55 +0200)
commit30b298d7e9a28304b6c7d71ce421216718ae99e1
tree4d29197205085b26044e36cb0d4177d7225ff255
parent3045819c8afb3a17a24d023821ecaae17929f9e4
selftests: bpf: fix urandom_read build issue

gcc complains that urandom_read gets built twice.

gcc -o tools/testing/selftests/bpf/urandom_read
-static urandom_read.c -Wl,--build-id
gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../lib/bpf
-I../../../../include/generated  -I../../../include    urandom_read.c
urandom_read -lcap -lelf -lrt -lpthread -o
tools/testing/selftests/bpf/urandom_read
gcc: fatal error: input file
‘tools/testing/selftests/bpf/urandom_read’ is the
same as output file
compilation terminated.
../lib.mk:110: recipe for target
'tools/testing/selftests/bpf/urandom_read' failed
To fix this issue remove the urandom_read target and so target
TEST_CUSTOM_PROGS gets used.

Fixes: cb1fff697234 ("bpf: add selftest for stackmap with BPF_F_STACK_BUILD_ID")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/Makefile