summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/core_reloc.c
diff options
context:
space:
mode:
authorTony Ambardar <tony.ambardar@gmail.com>2024-07-23 08:54:41 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-04 17:29:17 +0300
commit227b50fe66eba3720bb32e6fe66fc7064b042a70 (patch)
treeedf9d407463a1a368e0e8a3af19bb71e053fee4a /tools/testing/selftests/bpf/prog_tests/core_reloc.c
parentfe81b3df3cf942bcae89eebdc2ec295f97f2d35e (diff)
downloadlinux-227b50fe66eba3720bb32e6fe66fc7064b042a70.tar.xz
selftests/bpf: Fix compiling tcp_rtt.c with musl-libc
[ Upstream commit 18826fb0b79c3c3cd1fe765d85f9c6f1a902c722 ] The GNU version of 'struct tcp_info' in 'netinet/tcp.h' is not exposed by musl headers unless _GNU_SOURCE is defined. Add this definition to fix errors seen compiling for mips64el/musl-libc: tcp_rtt.c: In function 'wait_for_ack': tcp_rtt.c:24:25: error: storage size of 'info' isn't known 24 | struct tcp_info info; | ^~~~ tcp_rtt.c:24:25: error: unused variable 'info' [-Werror=unused-variable] cc1: all warnings being treated as errors Fixes: 1f4f80fed217 ("selftests/bpf: test_progs: convert test_tcp_rtt") Signed-off-by: Tony Ambardar <tony.ambardar@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/f2329767b15df206f08a5776d35a47c37da855ae.1721713597.git.tony.ambardar@gmail.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/core_reloc.c')
0 files changed, 0 insertions, 0 deletions