-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[contrib][linux] Fix build after introducing ASM HUF implementation #2790
Conversation
Hi @solbjorn! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
Thanks for the PR! The |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
* Fix compilation issues pointed out in PR facebook#2790. * Add test cases to GitHub actions that test all combinations of `DYNAMIC_BMI2` BMI2 support.
* Fix compilation issues pointed out in PR facebook#2790. * Add test cases to GitHub actions that test all combinations of `DYNAMIC_BMI2` BMI2 support.
* Fix compilation issues pointed out in PR facebook#2790. * Add test cases to GitHub actions that test all combinations of `DYNAMIC_BMI2` BMI2 support.
@terrelln, sure, great! |
Updated. |
Linux 5.15 introduces a new Kconfig option, CONFIG_WERROR, which forces -Werror for the entire kernel. Current in-kernel ZSTD implementation uses functions deprecated in 1.5.0, and thus fails on -Wdeprecated-declarations. Turn this particular error into warning to be able to build the kernel with CONFIG_WERROR. I'm not disabling them completely to make sure they'll be visible and [hopefully] fixed sooner or later. Signed-off-by: Alexander Lobakin <[email protected]>
Commit a5f2c45 ("Huffman ASM") added a new ASM source file, but it wasn't added to the kernel Makefile despite that it received support for Huffman ASM according to the internal definitions. This leads to undefined references, as huf_decompress.o now calls those ASM functions. Add it to the list of sources when building inside the kernel tree. Kbuild can handle .S files just fine, so none additional rules needed. Fixes: a5f2c45 ("Huffman ASM") Signed-off-by: Alexander Lobakin <[email protected]>
The mentioned path is being created/used by the 'import' rule for generating source files for Linux kernel. Signed-off-by: Alexander Lobakin <[email protected]>
Thanks for the PR @solbjorn! |
This mostly fixes kernel build after introducing ASM HUF implementation, but also adds the ability to build the kernel with recently landed
CONFIG_WERROR
while in-kernel ZSTD library still uses the functions deprecated in 1.5.0.Compile and run time tested on Linux 5.15-rc2 with Clang 12.