mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
selftests/bpf: Move newer bpf_iter_* type redefining to a new header file
Commitb9f4c01f3e("selftest/bpf: Make bpf_iter selftest compilable against old vmlinux.h") and Commitdda18a5c0b("selftests/bpf: Convert bpf_iter_test_kern{3, 4}.c to define own bpf_iter_meta") redefined newly introduced types in bpf programs so the bpf program can still compile properly with old kernels although loading may fail. Since this patch set introduced new types and the same workaround is needed, so let us move the workaround to a separate header file so they do not clutter bpf programs. Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Acked-by: Martin KaFai Lau <kafai@fb.com> Link: https://lore.kernel.org/bpf/20200623230816.3988656-1-yhs@fb.com
This commit is contained in:
parent
0d4fad3e57
commit
84544f5637
9 changed files with 57 additions and 136 deletions
Loading…
Add table
Add a link
Reference in a new issue