selftests/bpf: fix RELEASE=1 build for tc_opts
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 2 Nov 2023 03:37:43 +0000 (20:37 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 10 Nov 2023 02:58:38 +0000 (18:58 -0800)
commit2b62aa59d02ed281fa4fc218df3ca91b773e1e62
tree686aacd80499a6a90b0418246cf7baab1be1b59f
parentbf4a64b9323f181df8aba32d66cb37b9fa5df959
selftests/bpf: fix RELEASE=1 build for tc_opts

Compiler complains about malloc(). We also don't need to dynamically
allocate anything, so make the life easier by using statically sized
buffer.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20231102033759.2541186-2-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/tc_opts.c