diff options
| author | Andrii Nakryiko <[email protected]> | 2021-11-03 22:08:44 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-11-07 16:34:23 +0000 |
| commit | cbdb1461dcf45765a036e9f6975ffe19e69bdc33 (patch) | |
| tree | 826122e1a461694a54fbf27a68dc7aec64e94aa2 /tools/testing/selftests/bpf/prog_tests/load_bytes_relative.c | |
| parent | selftests/bpf: Merge test_stub.c into testing_helpers.c (diff) | |
| download | kernel-cbdb1461dcf45765a036e9f6975ffe19e69bdc33.tar.gz kernel-cbdb1461dcf45765a036e9f6975ffe19e69bdc33.zip | |
selftests/bpf: Use explicit bpf_prog_test_load() calls everywhere
-Dbpf_prog_load_deprecated=bpf_prog_test_load trick is both ugly and
breaks when deprecation goes into effect due to macro magic. Convert all
the uses to explicit bpf_prog_test_load() calls which avoid deprecation
errors and makes everything less magical.
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Dave Marchevsky <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/load_bytes_relative.c')
| -rw-r--r-- | tools/testing/selftests/bpf/prog_tests/load_bytes_relative.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/load_bytes_relative.c b/tools/testing/selftests/bpf/prog_tests/load_bytes_relative.c index 5a2a689dbb68..4e0b2ec057aa 100644 --- a/tools/testing/selftests/bpf/prog_tests/load_bytes_relative.c +++ b/tools/testing/selftests/bpf/prog_tests/load_bytes_relative.c @@ -27,7 +27,7 @@ void test_load_bytes_relative(void) if (CHECK_FAIL(server_fd < 0)) goto close_cgroup_fd; - err = bpf_prog_load("./load_bytes_relative.o", BPF_PROG_TYPE_CGROUP_SKB, + err = bpf_prog_test_load("./load_bytes_relative.o", BPF_PROG_TYPE_CGROUP_SKB, &obj, &prog_fd); if (CHECK_FAIL(err)) goto close_server_fd; |
