]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Declare bpf_log_buf variables as static
authorToke Høiland-Jørgensen <toke@redhat.com>
Mon, 2 Mar 2020 14:53:48 +0000 (15:53 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 3 Mar 2020 01:00:41 +0000 (17:00 -0800)
commit395536468417bc6a436a7230a5cf0308418c6ea2
tree7f137e140f276375d6fcf7c238f5e4cdfcbfa758
parente6b0629c50c43c0994e680b832850a35c5aca9f0
selftests/bpf: Declare bpf_log_buf variables as static

The cgroup selftests did not declare the bpf_log_buf variable as static, leading
to a linker error with GCC 10 (which defaults to -fno-common). Fix this by
adding the missing static declarations.

Fixes: ba7abe01bb8a ("selftests/bpf: Convert test_cgroup_attach to prog_tests")
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrey Ignatov <rdna@fb.com>
Link: https://lore.kernel.org/bpf/20200302145348.559177-1-toke@redhat.com
tools/testing/selftests/bpf/prog_tests/cgroup_attach_autodetach.c
tools/testing/selftests/bpf/prog_tests/cgroup_attach_multi.c
tools/testing/selftests/bpf/prog_tests/cgroup_attach_override.c