summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/signal_pending.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2021-10-23 01:32:25 +0300
committerAlexei Starovoitov <ast@kernel.org>2021-10-26 00:45:45 +0300
commit6972dc3b8778ce0d9ce819c6f1e3d32ce2bc3dd9 (patch)
tree1714331fc5d41d93b49ef2fa65741797be1d0e51 /tools/testing/selftests/bpf/prog_tests/signal_pending.c
parentc825f5fee19caf301d9821cd79abaa734322de26 (diff)
downloadlinux-6972dc3b8778ce0d9ce819c6f1e3d32ce2bc3dd9.tar.xz
selftests/bpf: Normalize selftest entry points
Ensure that all test entry points are global void functions with no input arguments. Mark few subtest entry points as static. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20211022223228.99920-2-andrii@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/signal_pending.c')
-rw-r--r--tools/testing/selftests/bpf/prog_tests/signal_pending.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/signal_pending.c b/tools/testing/selftests/bpf/prog_tests/signal_pending.c
index dfcbddcbe4d3..fdfdcff6cbef 100644
--- a/tools/testing/selftests/bpf/prog_tests/signal_pending.c
+++ b/tools/testing/selftests/bpf/prog_tests/signal_pending.c
@@ -42,7 +42,7 @@ static void test_signal_pending_by_type(enum bpf_prog_type prog_type)
signal(SIGALRM, SIG_DFL);
}
-void test_signal_pending(enum bpf_prog_type prog_type)
+void test_signal_pending(void)
{
test_signal_pending_by_type(BPF_PROG_TYPE_SOCKET_FILTER);
test_signal_pending_by_type(BPF_PROG_TYPE_FLOW_DISSECTOR);