Skip to content

Commit

Permalink
selftests/bpf: mark variable as static
Browse files Browse the repository at this point in the history
Fix warnings from checkstyle.pl

Signed-off-by: Yucong Sun <sunyucong@gmail.com>
  • Loading branch information
thefallentree authored and Nobody committed Nov 16, 2021
1 parent c21eef6 commit 9459c06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/testing/selftests/bpf/test_progs.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,11 +473,11 @@ static struct prog_test_def prog_test_defs[] = {
#include <prog_tests/tests.h>
#undef DEFINE_TEST
};
const int prog_test_cnt = ARRAY_SIZE(prog_test_defs);
static const int prog_test_cnt = ARRAY_SIZE(prog_test_defs);

const char *argp_program_version = "test_progs 0.1";
const char *argp_program_bug_address = "<bpf@vger.kernel.org>";
const char argp_program_doc[] = "BPF selftests test runner";
static const char argp_program_doc[] = "BPF selftests test runner";

enum ARG_KEYS {
ARG_TEST_NUM = 'n',
Expand Down

0 comments on commit 9459c06

Please sign in to comment.