selftests/bpf: fix test_maps' use of bpf_map_create_opts
authorAndrii Nakryiko <andrii@kernel.org>
Sun, 29 Oct 2023 01:15:09 +0000 (18:15 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 2 Nov 2023 05:42:38 +0000 (22:42 -0700)
commit9af3775962afa8b5cd0cc30c1e454405a650c1f3
tree582bbd2b8038cd7d5403059664349cc503d87742
parentfd381ce60a2d79cc967506208085336d3d268ae0
selftests/bpf: fix test_maps' use of bpf_map_create_opts

Use LIBBPF_OPTS() macro to properly initialize bpf_map_create_opts in
test_maps' tests.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20231029011509.2479232-1-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/map_tests/map_percpu_stats.c