summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/map_tests
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2021-12-09 20:38:37 +0100
committerAndrii Nakryiko <andrii@kernel.org>2021-12-11 00:29:18 +0100
commitdc94121b5ca17adaaabb7959c10d9c6ea504f7b1 (patch)
tree1f2b491be6269223253a58abda09387a07c92a6a /tools/testing/selftests/bpf/map_tests
parentlibbpf: Deprecate bpf_object__load_xattr() (diff)
downloadlinux-dc94121b5ca17adaaabb7959c10d9c6ea504f7b1.tar.xz
linux-dc94121b5ca17adaaabb7959c10d9c6ea504f7b1.zip
selftests/bpf: Replace all uses of bpf_load_btf() with bpf_btf_load()
Switch all selftests uses of to-be-deprecated bpf_load_btf() with equivalent bpf_btf_load() calls. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20211209193840.1248570-10-andrii@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/map_tests')
-rw-r--r--tools/testing/selftests/bpf/map_tests/sk_storage_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/map_tests/sk_storage_map.c b/tools/testing/selftests/bpf/map_tests/sk_storage_map.c
index 8eea4ffeb092..099eb4dfd4f7 100644
--- a/tools/testing/selftests/bpf/map_tests/sk_storage_map.c
+++ b/tools/testing/selftests/bpf/map_tests/sk_storage_map.c
@@ -136,7 +136,7 @@ static int load_btf(void)
memcpy(raw_btf + sizeof(btf_hdr) + sizeof(btf_raw_types),
btf_str_sec, sizeof(btf_str_sec));
- return bpf_load_btf(raw_btf, sizeof(raw_btf), 0, 0, 0);
+ return bpf_btf_load(raw_btf, sizeof(raw_btf), NULL);
}
static int create_sk_storage_map(void)