]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: Make sure all 'skel' variables are declared static
authorToke Høiland-Jørgensen <toke@redhat.com>
Tue, 29 Sep 2020 12:30:26 +0000 (14:30 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 29 Sep 2020 18:43:43 +0000 (11:43 -0700)
commit4ba5e6c75ad4e158ea248b5287a3deb10a3a3f28
tree335ff76350c26bf77870612b974de3c06d5fe7aa
parent0c7ce3158445f1209ed6fbbc17aedf00c919d449
selftests: Make sure all 'skel' variables are declared static

If programs in prog_tests using skeletons declare the 'skel' variable as
global but not static, that will lead to linker errors on the final link of
the prog_tests binary due to duplicate symbols. Fix a few instances of this.

Fixes: 7333fc0592a2 ("bpf: selftest: Adapt sock_fields test to use skel and global variables")
Fixes: 3261b8bd461e ("bpf: selftest: Add test_btf_skc_cls_ingress")
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200929123026.46751-1-toke@redhat.com
tools/testing/selftests/bpf/prog_tests/btf_skc_cls_ingress.c
tools/testing/selftests/bpf/prog_tests/sock_fields.c