diff --git a/ci/diffs/0001-ci-temporarily-remove-iter_arr_with_actual_elem_coun.patch b/ci/diffs/0001-ci-temporarily-remove-iter_arr_with_actual_elem_coun.patch new file mode 100644 index 0000000..a822a44 --- /dev/null +++ b/ci/diffs/0001-ci-temporarily-remove-iter_arr_with_actual_elem_coun.patch @@ -0,0 +1,43 @@ +From 174bc14e6f9877ebfc7ffe8ef5e1b24c62670b33 Mon Sep 17 00:00:00 2001 +From: Andrii Nakryiko +Date: Mon, 11 Dec 2023 16:50:51 -0800 +Subject: [PATCH 1/1] ci: temporarily remove iter_arr_with_actual_elem_count + prog + +Remove iter_arr_with_actual_elem_count subtest which has problems in +cpuv4 flavor on latest Clang due to recent Clang changes. + +Signed-off-by: Andrii Nakryiko +--- + tools/testing/selftests/bpf/progs/iters.c | 17 ----------------- + 1 file changed, 17 deletions(-) + +diff --git a/tools/testing/selftests/bpf/progs/iters.c b/tools/testing/selftests/bpf/progs/iters.c +index 3aca3dc145b5..34c0c65bacd9 100644 +--- a/tools/testing/selftests/bpf/progs/iters.c ++++ b/tools/testing/selftests/bpf/progs/iters.c +@@ -1416,21 +1416,4 @@ struct { + int n; + } loop_data; + +-SEC("raw_tp") +-__success +-int iter_arr_with_actual_elem_count(const void *ctx) +-{ +- int i, n = loop_data.n, sum = 0; +- +- if (n > ARRAY_SIZE(loop_data.data)) +- return 0; +- +- bpf_for(i, 0, n) { +- /* no rechecking of i against ARRAY_SIZE(loop_data.n) */ +- sum += loop_data.data[i]; +- } +- +- return sum; +-} +- + char _license[] SEC("license") = "GPL"; +-- +2.34.1 +