projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67d61d3
)
selftests/bpf: Mark variable as static
author
Yucong Sun
<sunyucong@gmail.com>
Fri, 12 Nov 2021 19:25:34 +0000
(11:25 -0800)
committer
Andrii Nakryiko
<andrii@kernel.org>
Wed, 17 Nov 2021 04:35:17 +0000
(20:35 -0800)
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
tools/testing/selftests/bpf/test_progs.c
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/bpf/test_progs.c
b/tools/testing/selftests/bpf/test_progs.c
index
926475a
..
2969289
100644
(file)
--- a/
tools/testing/selftests/bpf/test_progs.c
+++ b/
tools/testing/selftests/bpf/test_progs.c
@@
-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',