Skip to content

Fixes for the next linux kernel patch version#2539

Merged
terrelln merged 6 commits intofacebook:devfrom
terrelln:linux-kernel-fixes
Mar 24, 2021
Merged

Fixes for the next linux kernel patch version#2539
terrelln merged 6 commits intofacebook:devfrom
terrelln:linux-kernel-fixes

Conversation

@terrelln
Copy link
Contributor

I'm going to update the patch set to the latest dev, instead of staying on zstd-1.4.6, so we're not releasing old code.

  • Bump version number to 1.4.10
  • Expose zstd.h as zstd_lib.h in the linux kernel to avoid struct redefinitions
  • Add the ZSTD_NO_TRACE macro to force tracing disabling & avoid needing the header
  • Remove tracing support from the freestanding library for simplicity
  • Update testing stubs to fix unalign.h and support the current zstd version in the kernel for testing

I also want to wait for PR #2538 and PR #2524 to be resolved.

Fix the `unaligned.h` shim in the tests that was causing corruption in
the tests. Note that this is a problem with the test shim, not the
kernel code.
Update the test include stubs so they are able to run the current zstd
version in the kernel, so I can compare stack usage.
Expose the zstd headers in `include/linux` to avoid struct duplication.
This makes the member names not follow Kernel style guidelines, and
exposes the zstd symbols. But, the LMKL reviewers are okay with that.
Remove tracing support from `freestanding.py` to keep things simple.
When defined, it disables tracing, and avoids including the header.
@terrelln terrelln merged commit f8ac0ea into facebook:dev Mar 24, 2021
terrelln added a commit that referenced this pull request Mar 24, 2021
Fixes for the next linux kernel patch version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants