-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Linux build: silence objtool warnings #17410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Looks like RHEL 8 is missing the |
I've been running into this warning, though as a build error, while trying to get a zfs build for 6.15. After bisecting the kernel, it appears to be failing the build because of this commit:
|
Thanks for noticing. I'd assume that this PR would fix the build for you. Did you try? (The failing check is due to an ancient kernel.) |
I can try shortly. I'm disabling the option in the kernel first, then will come back and try this patch (while re-enabling the config). |
@AttilaFueloep for RHEL 8 adding a check to As you'd expect, I did verify the quick fix of adding only the missing assembler macro does work but that's going to be fragile long term. |
@behlendorf Well it's complicated. Newer kernels have an assembler macro for marking the stack non standard. for certain functions whereas the RHEL 8 kernel has not. To check for the macro inside |
@AttilaFueloep - this patch + CONFIG_OBJTOOL_WERROR=y works, as does CONFIG_OBJTOOL_WERROR=n |
Exactly, that's why my current plan is to check for the macro inside |
@john-cabaj Nice, thanks for confirming. |
Verifying we can build the kmod would absolutely be best, so don't let me deter you from getting that working. But adding a primitive check for the oddball case where the |
Yeah, nice. Looking at all the |
If this passes the CI I'll squash and rebase. |
After openzfs#17401 the Linux build produces some stack related warnings. Silence them with the `STACK_FRAME_NON_STANDARD` macro. Signed-off-by: Attila Fülöp <[email protected]> Co-authored-by: Brian Behlendorf <[email protected]>
82f54d0
to
fa695c2
Compare
Signed-off-by: Attila Fülöp <[email protected]>
Squashed, rebased and added a refinement to the grep regexp I forgot to commit. |
Searching the build logs reveals that there still are some The Ubuntu22 builder has this strange warning which isn't seen on the other builders:
Not sure what to make out of it. |
@john-cabaj It seems you are not seeing the remaining |
The The proper fix would be to add |
Motivation and Context
Follow up for #17401 (3084336).
Description
After #17401 the Linux build produces some stack related warnings. Silence them with the
STACK_FRAME_NON_STANDARD
macro.How Has This Been Tested?
Built and loaded the module, verified that
__warn_thunk
isn't called.Types of changes
Checklist:
Signed-off-by
.