Repository navigation
helper: spell out datum_b so clang builds the helper - #73
Conversation
clang 21 stops the helper build with -Wmissing-field-initializers on the DMA_BUF_IOCTL_SYNC seccomp rule: SCMP_A1 is a compound literal and the EQ comparison left datum_b out. It was already zero, so the filter is unchanged (same 0x40086200, 0 pair in the gcc build). gcc and clang now build the helper with werror, 14/14 tests on both.
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
[Low impact] This PR appears safe to merge.
|
clang 21 stops the helper build at helper/drmtap-helper.c:251 with -Wmissing-field-initializers: SCMP_A1 expands to a compound literal and the EQ rule for DMA_BUF_IOCTL_SYNC left datum_b out.
datum_b was already zero, so the seccomp filter does not change. In the gcc build the rule still gets the same 0x40086200, 0 pair, only loaded differently.
1- clang 21 debug, and clang -march=native release, with the helper: builds with werror, 14/14
2- gcc release with the helper: 14/14
3- sync-crate --check and check-version pass