aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/tracing_struct.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2023-04-13 19:54:17 -0700
committerAlexei Starovoitov <ast@kernel.org>2023-04-13 19:54:17 -0700
commit75860b52019cf93662c31596254599bf5f8df900 (patch)
treeac826214cf776caaed43f3f8c8ebf101919e0cb6 /tools/testing/selftests/bpf/prog_tests/tracing_struct.c
parentc04135ab351badb1daf5868328581075ead691e0 (diff)
selftests/bpf: Workaround for older vm_sockets.h.
Some distros ship with older vm_sockets.h that doesn't have VMADDR_CID_LOCAL which causes selftests build to fail: /tmp/work/bpf/bpf/tools/testing/selftests/bpf/prog_tests/sockmap_listen.c:261:18: error: ‘VMADDR_CID_LOCAL’ undeclared (first use in this function); did you mean ‘VMADDR_CID_HOST’? 261 | addr->svm_cid = VMADDR_CID_LOCAL; | ^~~~~~~~~~~~~~~~ | VMADDR_CID_HOST Workaround this issue by defining it on demand. Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tracing_struct.c')
0 files changed, 0 insertions, 0 deletions