diff options
author | Hengqi Chen <hengqi.chen@gmail.com> | 2021-10-03 19:58:44 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-10-06 22:34:02 +0300 |
commit | 6f2b219b62a4376ca2da15c503de79d0650c8155 (patch) | |
tree | d6b57e0ba51373477c58bea70ec99e43e553913e /tools/testing/selftests/bpf/xdping.c | |
parent | 2088a3a71d870115fdfb799c0f7de76d7383ba03 (diff) | |
download | linux-6f2b219b62a4376ca2da15c503de79d0650c8155.tar.xz |
selftests/bpf: Switch to new bpf_object__next_{map,program} APIs
Replace deprecated bpf_{map,program}__next APIs with newly added
bpf_object__next_{map,program} APIs, so that no compilation warnings
emit.
Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20211003165844.4054931-3-hengqi.chen@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/xdping.c')
-rw-r--r-- | tools/testing/selftests/bpf/xdping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/xdping.c b/tools/testing/selftests/bpf/xdping.c index 79a3453dab25..30f12637f4e4 100644 --- a/tools/testing/selftests/bpf/xdping.c +++ b/tools/testing/selftests/bpf/xdping.c @@ -187,7 +187,7 @@ int main(int argc, char **argv) return 1; } - map = bpf_map__next(NULL, obj); + map = bpf_object__next_map(obj, NULL); if (map) map_fd = bpf_map__fd(map); if (!map || map_fd < 0) { |