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 <maskray@google.com>Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>Acked-by: Yonghong Song <yhs@fb.com>Acked-by: Quentin Monnet <quentin@isovalent.com>Link: https://github.com/llvm/llvm-project/commit/274b6f0c87a6a1798de0a68135afc7f95def6277Link: https://lore.kernel.org/bpf/20230624001856.1903733-1-maskray@google.com
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 <ast@kernel.org>Signed-off-by: David S. Miller <davem@davemloft.net>