-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add MODULE_INIT_ constants #1041
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
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
I'm not sure if this constants should also be added to the android platform as the kernel module loading should be the same there. |
It looks like tests are failing? Perhaps a missing header? It should be fine to exclude the constants on platforms where they aren't needed |
That platforms where it is failing is Linux and Linux is the only one it is available. So excluding doesn't make much sense 😉 The constants are defined in the linux uapi header file |
You may need to tweak |
0b4b184
to
a98a6ed
Compare
@alexcrichton It looks like the musl kernel-headers do not include the I'm unsure how to handle this. As this are only constant definitions that will be used later in a syscall (not a c function) from the nix crate. So I don't just want to exclude musl here. I tried manually copying the I see several ways to fix this:
Any ideas? |
The docker images we're using I think are copying the kernel heders from #616 I think? Are newer versions of the headers needed though? |
Newer version of the "sanetized headers" are not available. I will check if I can bring the missing header in there and then use the newer version. |
☔ The latest upstream changes (presumably #1039) made this pull request unmergeable. Please resolve the merge conflicts. |
These are flags required to implement the linux kernel loading mechanism. Specifically finit_module.
0cb5699
to
3ce792b
Compare
Sparc64 is still failing as debian doesn't ship the required header file. Ubuntu does that's why it is working there. |
@alexcrichton I got CI to pass but with two caveats:
|
This looks great, thanks! I think doing something weird for one platform is fine. It looks like upstream is merged so should the urls switch back to that? |
@alexcrichton Yes I will update the PR |
@alexcrichton Urls are switched back to upstream. I think this is good to go now. |
@bors: r+ |
📌 Commit 2365707 has been approved by |
Add MODULE_INIT_ constants These are flags required to implement the linux kernel loading mechanism. Specifically finit_module.
☀️ Test successful - status-appveyor, status-travis |
These are flags required to implement the linux kernel loading mechanism.
Specifically finit_module.