Skip to content

Commit f0a4f9f

Browse files
thefallentreeNobody
authored and
Nobody
committed
selftests/bpf: mark variable as static
Fix warnings from checkstyle.pl Signed-off-by: Yucong Sun <[email protected]>
1 parent fe2cc4e commit f0a4f9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/bpf/test_progs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,11 +473,11 @@ static struct prog_test_def prog_test_defs[] = {
473473
#include <prog_tests/tests.h>
474474
#undef DEFINE_TEST
475475
};
476-
const int prog_test_cnt = ARRAY_SIZE(prog_test_defs);
476+
static const int prog_test_cnt = ARRAY_SIZE(prog_test_defs);
477477

478478
const char *argp_program_version = "test_progs 0.1";
479479
const char *argp_program_bug_address = "<[email protected]>";
480-
const char argp_program_doc[] = "BPF selftests test runner";
480+
static const char argp_program_doc[] = "BPF selftests test runner";
481481

482482
enum ARG_KEYS {
483483
ARG_TEST_NUM = 'n',

0 commit comments

Comments
 (0)