-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Linux build: handle CONFIG_OBJTOOL_WERROR=y #17456
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
Conversation
If I understand the checkstyle error correctly, it complains that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, this will work. I've got a little time this afternoon, let me see if I can help wrestle with auto tools to get it to do what we want. In the meanwhile I added a few comments.
The second commit is misguided, sorry. I definitely should stop computer work when too tired to think clearly. Especially when working outside my comfort zone. The last commit should address all issues and improve things. I can squash if preferred. |
No worries. If you can address my one comment, squash these commits, and update the PR. Then I think this should be all set. |
Will do. There's still the checkstyle issue with the license tag. If I'm reading |
Linux 5.16 by default fails the build on objtool warnings. We have known and understood objtool warnings we can't fix without involving Linux maintainers. To work around this we introduce an objtool wrapper script which removes the `--Werror` flag. Signed-off-by: Attila Fülöp <attila@fueloep.org>
5c3eab4
to
5dad179
Compare
Rebased and squashed. |
As I see it, we have two options. Ask people to configure the kernel without Or we can we can patch If we want to take the second approach, there's still |
The |
Yeah, I think so too.
I'm pretty sure this is something going wrong in the CI. I'll try and take a look this week. |
And it's the easiest solution too.
All right, thanks. |
Motivation and Context
Linux 5.16 by default fails the build on objtool warnings. We have known and understood objtool warnings we can't fix without involving Linux maintainers.
Description
To work around this we introduce an objtool wrapper script which removes the
--Werror
flag.How Has This Been Tested?
Manually.
Types of changes
Checklist:
Signed-off-by
.