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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Feb 2024 20:14:18 +0000 (20:14 +0000)
commit9e1913382b47f6f9b9374b07849b24a85c5dcd62
treed31145ff9ce70588426ff318845ffa1ed4f3dfb0
parent04cfe4a5da57ab9358cdfadea22bcb37324aaf83
selftests/bpf: fix RELEASE=1 build for tc_opts

[ Upstream commit 2b62aa59d02ed281fa4fc218df3ca91b773e1e62 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/prog_tests/tc_opts.c