Yonghong Song
ccaff3d56a
selftests/bpf: Fix clang compilation errors
...
llvm upstream patch ([1]) added to issue warning for code like
void test() {
int j = 0;
for (int i = 0; i < 1000; i++)
j++;
return;
}
This triggered several errors in selftests/bpf build since
compilation flag -Werror is used.
...
test_lpm_map.c:212:15: error: variable 'n_matches' set but not used [-Werror,-Wunused-but-set-variable]
size_t i, j, n_matches, n_matches_after_delete, n_nodes, n_lookups;
^
test_lpm_map.c:212:26: error: variable 'n_matches_after_delete' set but not used [-Werror,-Wunused-but-set-variable]
size_t i, j, n_matches, n_matches_after_delete, n_nodes, n_lookups;
^
...
prog_tests/get_stack_raw_tp.c:32:15: error: variable 'cnt' set but not used [-Werror,-Wunused-but-set-variable]
static __u64 cnt;
^
...
For test_lpm_map.c, 'n_matches'/'n_matches_after_delete' are changed to be volatile
in order to silent the warning. I didn't remove these two declarations since
they are referenced in a commented code which might be used by people in certain
cases. For get_stack_raw_tp.c, the variable 'cnt' is removed.
[1] https://reviews.llvm.org/D122271
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220325200304.2915588-1-yhs@fb.com
2022-03-28 20:00:11 -07:00
..
2020-03-25 11:50:48 +01:00
2022-03-03 16:54:10 +01:00
2021-02-08 17:55:01 -08:00
2022-02-28 16:28:40 +01:00
2022-01-26 20:04:01 -08:00
2020-06-28 10:06:53 -07:00
2022-03-16 15:07:49 -07:00
2021-11-25 23:37:38 +01:00
2022-03-17 20:17:19 -07:00
2022-01-18 15:45:06 -08:00
2021-10-08 15:17:00 -07:00
2022-01-24 19:59:38 -08:00
2021-11-30 10:56:28 -08:00
2022-01-18 14:27:39 -08:00
2022-02-02 22:31:18 -08:00
2021-12-14 14:38:05 -08:00
2021-12-13 13:36:08 -08:00
2021-12-02 15:23:40 -08:00
2021-12-08 23:05:26 -08:00
2022-03-01 13:41:48 +01:00
2021-10-25 20:39:42 -07:00
2021-01-12 17:23:47 -08:00
2021-08-16 18:38:52 -07:00
2021-12-16 21:41:18 +01:00
2021-11-11 16:54:06 -08:00
2022-03-05 18:39:51 -08:00
2021-11-11 17:41:11 -08:00
2022-02-15 09:58:34 -08:00
2021-10-08 15:17:00 -07:00
2022-03-15 17:03:10 +01:00
2022-03-15 17:03:10 +01:00
2022-03-15 17:03:10 +01:00
2022-01-19 12:51:30 -08:00
2021-10-08 15:17:00 -07:00
2021-05-25 17:32:35 -07:00
2021-10-08 15:10:43 -07:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2021-12-14 14:38:05 -08:00
2021-10-22 16:09:14 -07:00
2020-08-13 16:45:41 -07:00
2022-02-04 11:29:01 -08:00
2022-02-04 11:29:01 -08:00
2021-01-08 13:39:24 -08:00
2022-02-20 09:19:58 -08:00
2020-08-01 23:10:42 -07:00
2020-01-20 16:37:45 -08:00
2022-03-05 09:38:15 -08:00
2022-01-19 01:27:03 +01:00
2022-02-02 22:31:18 -08:00
2020-05-01 10:36:32 -07:00
2020-07-01 09:06:12 +02:00
2021-11-08 22:17:55 +01:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2021-10-28 16:30:07 -07:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-03-08 17:39:29 -08:00
2022-02-02 22:31:18 -08:00
2021-11-07 08:34:24 -08:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2021-10-25 21:43:05 -07:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-03-28 20:00:11 -07:00
2022-01-25 17:59:07 -08:00
2022-01-12 17:01:38 -08:00
2022-03-15 17:03:10 +01:00
2022-02-02 22:31:18 -08:00
2020-11-05 20:04:46 -08:00
2021-05-25 17:32:35 -07:00
2021-11-15 20:37:11 -08:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-03-17 20:17:19 -07:00
2021-12-18 13:27:41 -08:00
2022-02-08 21:17:34 +01:00
2020-10-02 14:59:25 -07:00
2022-02-02 22:31:18 -08:00
2021-11-25 23:05:23 +01:00
2021-12-17 23:11:13 +01:00
2021-05-25 17:32:35 -07:00
2021-04-23 14:05:27 -07:00
2021-04-23 14:05:27 -07:00
2021-04-23 14:05:27 -07:00
2021-11-07 08:34:23 -08:00
2022-03-03 16:54:10 +01:00
2021-05-24 13:30:52 -07:00
2020-11-05 19:55:57 -08:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2020-09-15 18:28:27 -07:00
2021-11-07 09:14:15 -08:00
2021-04-08 23:54:48 -07:00
2022-02-02 22:31:18 -08:00
2021-10-08 13:22:57 -07:00
2021-11-03 15:43:09 +01:00
2021-08-24 14:17:53 -07:00
2021-10-08 15:17:00 -07:00
2022-03-15 17:03:10 +01:00
2020-09-30 23:21:06 -07:00
2022-03-08 17:39:28 -08:00
2021-11-11 16:54:05 -08:00
2021-05-25 17:32:35 -07:00
2022-03-08 17:39:28 -08:00
2021-11-25 23:37:38 +01:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2020-11-19 11:58:15 -08:00
2021-10-08 15:17:00 -07:00
2021-11-28 22:24:57 -08:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2021-11-07 08:34:23 -08:00
2022-02-02 22:31:18 -08:00
2021-10-21 17:10:11 -07:00
2021-10-06 12:34:02 -07:00
2021-09-28 13:51:19 -07:00
2021-10-25 14:45:45 -07:00
2021-11-25 23:37:38 +01:00
2021-10-28 16:30:07 -07:00
2020-07-25 20:37:02 -07:00
2021-12-14 22:16:54 +01:00
2021-10-08 15:17:00 -07:00
2022-03-11 22:18:13 +01:00
2022-02-02 22:31:18 -08:00
2021-09-28 13:51:19 -07:00
2021-12-14 22:16:54 +01:00
2021-10-08 15:17:00 -07:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2021-10-21 15:11:06 -07:00
2021-10-21 17:10:10 -07:00
2021-10-08 15:17:00 -07:00
2021-10-25 14:45:45 -07:00
2022-01-31 12:39:12 -08:00
2021-02-11 17:44:41 -08:00
2022-02-02 22:31:18 -08:00
2021-11-25 23:37:38 +01:00
2022-01-12 17:01:38 -08:00
2021-12-14 14:38:05 -08:00
2021-12-02 15:23:40 -08:00
2021-08-20 01:10:01 +02:00
2022-01-19 13:05:13 -08:00
2021-11-07 08:34:23 -08:00
2022-02-02 22:31:18 -08:00
2021-02-10 11:05:34 -08:00
2022-01-25 17:59:07 -08:00
2021-12-14 14:38:05 -08:00
2022-03-20 19:16:50 -07:00
2021-12-14 14:38:05 -08:00
2021-05-13 17:23:57 -07:00
2022-03-16 15:13:36 -07:00
2022-03-17 23:12:48 -07:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2021-11-07 08:34:23 -08:00
2021-11-07 08:34:23 -08:00
2021-02-26 11:51:48 -08:00
2022-01-26 20:04:01 -08:00
2021-05-17 17:52:20 +02:00
2022-03-09 14:19:23 -08:00
2021-11-07 08:34:23 -08:00
2021-05-25 17:32:35 -07:00
2021-12-02 15:23:40 -08:00
2020-12-03 17:23:24 -08:00
2022-02-08 21:45:06 -08:00
2021-11-26 00:15:03 +01:00
2020-11-18 01:36:27 +01:00
2021-12-02 15:23:40 -08:00
2022-03-10 18:57:55 -08:00
2021-12-29 17:54:40 -08:00
2021-04-25 21:09:02 -07:00
2021-12-14 14:38:05 -08:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2021-12-11 17:40:23 -08:00
2022-02-11 13:13:04 -08:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2021-11-07 08:34:23 -08:00
2022-02-02 22:31:18 -08:00
2021-10-28 16:30:07 -07:00
2021-10-28 16:30:07 -07:00
2021-12-14 14:38:05 -08:00
2021-05-25 17:32:35 -07:00
2020-08-13 16:45:41 -07:00
2021-10-28 16:30:07 -07:00
2020-03-17 19:29:12 +01:00
2022-02-10 17:48:30 -08:00
2022-02-08 21:17:34 +01:00
2022-02-03 16:32:25 +01:00
2021-11-26 00:15:03 +01:00
2022-02-02 22:31:18 -08:00
2021-07-07 19:51:13 -07:00
2022-02-08 21:17:34 +01:00
2022-02-08 21:17:34 +01:00
2022-03-11 22:01:26 +01:00
2022-02-03 16:32:25 +01:00
2022-02-03 16:32:25 +01:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2021-09-26 13:07:28 -07:00