diff options
author | 2021-10-22 15:32:25 -0700 | |
---|---|---|
committer | 2021-10-25 14:45:45 -0700 | |
commit | 6972dc3b8778ce0d9ce819c6f1e3d32ce2bc3dd9 (patch) | |
tree | 1714331fc5d41d93b49ef2fa65741797be1d0e51 /tools/testing/selftests/bpf/prog_tests/snprintf.c | |
parent | libbpf: Fix BTF header parsing checks (diff) | |
download | linux-6972dc3b8778ce0d9ce819c6f1e3d32ce2bc3dd9.tar.gz linux-6972dc3b8778ce0d9ce819c6f1e3d32ce2bc3dd9.tar.bz2 linux-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 <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/snprintf.c')
-rw-r--r-- | tools/testing/selftests/bpf/prog_tests/snprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/snprintf.c b/tools/testing/selftests/bpf/prog_tests/snprintf.c index 8fd1b4b29a0e..394ebfc3bbf3 100644 --- a/tools/testing/selftests/bpf/prog_tests/snprintf.c +++ b/tools/testing/selftests/bpf/prog_tests/snprintf.c @@ -33,7 +33,7 @@ #define EXP_NO_BUF_RET 29 -void test_snprintf_positive(void) +static void test_snprintf_positive(void) { char exp_addr_out[] = EXP_ADDR_OUT; char exp_sym_out[] = EXP_SYM_OUT; @@ -103,7 +103,7 @@ static int load_single_snprintf(char *fmt) return ret; } -void test_snprintf_negative(void) +static void test_snprintf_negative(void) { ASSERT_OK(load_single_snprintf("valid %d"), "valid usage"); |