fix(bpf): add explicit casts for mm_struct CO-RE relabels#8280
Open
dottorblaster wants to merge 1 commit intofacebookincubator:mainfrom
Open
fix(bpf): add explicit casts for mm_struct CO-RE relabels#8280dottorblaster wants to merge 1 commit intofacebookincubator:mainfrom
mm_struct CO-RE relabels#8280dottorblaster wants to merge 1 commit intofacebookincubator:mainfrom
Conversation
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>
mm_struct CO-RE relabels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LLVM 22 promoted
-Wincompatible-pointer-typesfrom a warning to an error, breaking the implicit conversion fromconst struct mm_struct *to the relabeledmm_struct___pre62/___post62CO-RE types inexitstat.bpf.c. Add explicit casts so the file builds on both pre- and post-LLVM 22 toolchains.Fixes #8275