Skip to content

Commit 9d7c363

Browse files
committed
fix(bpf): try to fix Linux 6.1 with clang 20+
1 parent 49298b3 commit 9d7c363

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ jobs:
179179
done
180180
cd out
181181
mkdir expect-fail
182-
mv mimic-compat-6.1-clang-20 mimic-compat-6.6-clang-20 expect-fail/
182+
# insert expected fail combination here
183183
- name: Upload executable
184184
uses: actions/upload-artifact@v4
185185
with:

bpf/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ int store_packet(struct __sk_buff* skb, __u32 pkt_off, struct conn_tuple* key, i
6060
}
6161
if (has_remainder) {
6262
offset = i * SEGMENT_SIZE;
63-
#if defined(MIMIC_COMPAT_LINUX_6_1) || defined(MIMIC_COMPAT_LINUX_6_6)
63+
#if (defined(MIMIC_COMPAT_LINUX_6_1) || defined(MIMIC_COMPAT_LINUX_6_6)) && __clang_major__ < 20
6464
__u32 copy_len = data_len - offset;
6565
#else
6666
__u32 copy_len = data_len % SEGMENT_SIZE;

0 commit comments

Comments
 (0)