aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/signal_pending.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2021-10-22 22:32:25 +0000
committerAlexei Starovoitov <[email protected]>2021-10-25 21:45:45 +0000
commit6972dc3b8778ce0d9ce819c6f1e3d32ce2bc3dd9 (patch)
tree1714331fc5d41d93b49ef2fa65741797be1d0e51 /tools/testing/selftests/bpf/prog_tests/signal_pending.c
parentlibbpf: Fix BTF header parsing checks (diff)
downloadkernel-6972dc3b8778ce0d9ce819c6f1e3d32ce2bc3dd9.tar.gz
kernel-6972dc3b8778ce0d9ce819c6f1e3d32ce2bc3dd9.zip
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 <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
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);