diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2022-06-28 00:15:25 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-06-28 23:13:33 +0300 |
commit | 31e42721976b9c445477038f8a4006150cd27a60 (patch) | |
tree | 1831d79a05841087460d7158abf6b38a9d0139d9 /tools/testing/selftests/bpf/bpf_legacy.h | |
parent | 450b167fb9be91a8164d3f3d734674f5fe95b22d (diff) | |
download | linux-31e42721976b9c445477038f8a4006150cd27a60.tar.xz |
selftests/bpf: remove last tests with legacy BPF map definitions
Libbpf 1.0 stops support legacy-style BPF map definitions. Selftests has
been migrated away from using legacy BPF map definitions except for two
selftests, to make sure that legacy functionality still worked in
pre-1.0 libbpf. Now it's time to let those tests go as libbpf 1.0 is
imminent.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20220627211527.2245459-14-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/bpf_legacy.h')
-rw-r--r-- | tools/testing/selftests/bpf/bpf_legacy.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tools/testing/selftests/bpf/bpf_legacy.h b/tools/testing/selftests/bpf/bpf_legacy.h index 719ab56cdb5d..845209581440 100644 --- a/tools/testing/selftests/bpf/bpf_legacy.h +++ b/tools/testing/selftests/bpf/bpf_legacy.h @@ -2,15 +2,6 @@ #ifndef __BPF_LEGACY__ #define __BPF_LEGACY__ -#define BPF_ANNOTATE_KV_PAIR(name, type_key, type_val) \ - struct ____btf_map_##name { \ - type_key key; \ - type_val value; \ - }; \ - struct ____btf_map_##name \ - __attribute__ ((section(".maps." #name), used)) \ - ____btf_map_##name = { } - /* llvm builtin functions that eBPF C program may use to * emit BPF_LD_ABS and BPF_LD_IND instructions */ |