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>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211112192535.898352-4-fallentree@fb.com
  • Loading branch information
thefallentree authored and anakryiko committed Nov 17, 2021
1 parent 67d61d3 commit db813d7
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 db813d7

Please sign in to comment.