bpf: Replace deprecated -target with --target= for ClangThe -target option has been deprecated since clang 3.4 in 2013. Therefore, usethe preferred --target=bpf form instead. This also matches how
bpf: Replace deprecated -target with --target= for ClangThe -target option has been deprecated since clang 3.4 in 2013. Therefore, usethe preferred --target=bpf form instead. This also matches how we use --target=in scripts/Makefile.clang.Signed-off-by: Fangrui Song <[email protected]>Signed-off-by: Daniel Borkmann <[email protected]>Acked-by: Yonghong Song <[email protected]>Acked-by: Quentin Monnet <[email protected]>Link: https://github.com/llvm/llvm-project/commit/274b6f0c87a6a1798de0a68135afc7f95def6277Link: https://lore.kernel.org/bpf/[email protected]
show more ...
selftests/bpf: get rid of -D__x86_64__-D__x86_64__ workaround was used to make /usr/include/features.hto follow expected path through the system include headers.This is not portable.Instead defi
selftests/bpf: get rid of -D__x86_64__-D__x86_64__ workaround was used to make /usr/include/features.hto follow expected path through the system include headers.This is not portable.Instead define dummy stubs.h which is used by 'clang -target bpf'Fixes: 6882804c916b ("selftests/bpf: add a test for overlapping packet range checks")Signed-off-by: Alexei Starovoitov <[email protected]>Signed-off-by: David S. Miller <[email protected]>