Add MODULE_INIT_COMPRESSED_FILE definition
This adds in the definition for MODULE_INIT_COMPRESSED_FILE so that we can use it in the init_module class of functions to load compressed modules
Fixes https://github.com/rust-lang/libc/issues/3781
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @JohnTitor (or someone else) some time within the next two weeks.
Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:
-
@rustbot author: the review is finished, PR author should check the comments and take action accordingly -
@rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue
It looks like there may be some platforms where this isn't available. Could you please take a look at the failures on the latest CI?
@rustbot author
It looks like MOD_INIT_COMPRESSED_FILE was added in Linux 5.17. My guess is that the arm test is failing because it's the first test that runs on a version of Linux older than that.
@sinkingpoint could you rebase to get a fresh run of tests? This probably just needs something added in libc-test/build.rs to account for the kernel versions this is available on, as mentioned by @nathaniel-bennett
I pushed your branch with a rebase just to get fresh CI. Seems like this will need to be disabled on at least a few platforms.
:umbrella: The latest upstream changes (presumably #4132) made this pull request unmergeable. Please resolve the merge conflicts.
@sinkingpoint gentle ping, are you able to update this?
Closing as inactive, and I'm not quite sure anymore if this fits libc surface area