Skip to content

fix(bpf): add explicit casts for mm_struct CO-RE relabels#8280

Open
dottorblaster wants to merge 1 commit intofacebookincubator:mainfrom
dottorblaster:add-explicit-casts-core-llvm22
Open

fix(bpf): add explicit casts for mm_struct CO-RE relabels#8280
dottorblaster wants to merge 1 commit intofacebookincubator:mainfrom
dottorblaster:add-explicit-casts-core-llvm22

Conversation

@dottorblaster
Copy link
Copy Markdown

@dottorblaster dottorblaster commented May 3, 2026

LLVM 22 promoted -Wincompatible-pointer-types from a warning to an error, breaking the implicit conversion from const struct mm_struct * to the relabeled mm_struct___pre62 / ___post62 CO-RE types in exitstat.bpf.c. Add explicit casts so the file builds on both pre- and post-LLVM 22 toolchains.

Fixes #8275

LLVM 22 promoted -Wincompatible-pointer-types from a warning to an
error, breaking the implicit conversion from `const struct mm_struct *`
to the relabeled `mm_struct___pre62` / `___post62` CO-RE types in
exitstat.bpf.c. Add explicit casts so the file builds on both pre- and
post-LLVM 22 toolchains.

Signed-off-by: Alessio Biancalana <alessio@dottorblaster.it>
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 3, 2026
@dottorblaster dottorblaster changed the title fix(bpf): add explicit casts for mm_struct CO-RE relabels fix(bpf): add explicit casts for mm_struct CO-RE relabels May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bpf fails to build with clang-22 due to incompatible pointer type error

1 participant