[PATCH 0/2] zstd: Update to upstream v1.5.2

From: Nick Terrell
Date: Mon Oct 24 2022 - 18:05:08 EST


From: Nick Terrell <terrelln@xxxxxx>

This series first prepares the kernel's zstd for the update and then updates to
upstream zstd v1.5.2. I've separated the first patch out because it is a change
for the kernel build system, and I want to make sure it can be separately
reviewed.

The latest upstream release is v1.5.2, and I am targeting this patch for the v6.2
kernel. We will be working on a new upstream release later this year. If it is
ready by the team the v6.2 merge window rolls around, I will add another update
patch to this series.

I will be merging this into my `zstd-next` branch [0] which gets pulled into
`linux-next` for testing. So this patch series will also be available here:

https://github.com/terrelln/linux.git tags/zstd-v1.5.2-v1

Best,
Nick Terrell

[0] https://github.com/terrelln/linux/tree/zstd-next

Nick Terrell (2):
zstd: Move zstd-common module exports to zstd_common_module.c
zstd: import usptream v1.5.2

include/linux/zstd_lib.h | 479 ++--
lib/zstd/Makefile | 1 +
lib/zstd/common/bitstream.h | 9 +
lib/zstd/common/compiler.h | 67 +-
lib/zstd/common/entropy_common.c | 11 +-
lib/zstd/common/error_private.h | 81 +-
lib/zstd/common/fse.h | 3 +-
lib/zstd/common/fse_decompress.c | 2 +-
lib/zstd/common/huf.h | 46 +-
lib/zstd/common/mem.h | 2 +
lib/zstd/common/portability_macros.h | 93 +
lib/zstd/common/zstd_common.c | 10 -
lib/zstd/common/zstd_internal.h | 175 +-
lib/zstd/compress/clevels.h | 132 ++
lib/zstd/compress/fse_compress.c | 83 +-
lib/zstd/compress/huf_compress.c | 644 +++++-
lib/zstd/compress/zstd_compress.c | 2000 +++++++++++++----
lib/zstd/compress/zstd_compress_internal.h | 375 +++-
lib/zstd/compress/zstd_compress_literals.c | 9 +-
lib/zstd/compress/zstd_compress_literals.h | 4 +-
lib/zstd/compress/zstd_compress_sequences.c | 31 +-
lib/zstd/compress/zstd_compress_superblock.c | 295 +--
lib/zstd/compress/zstd_cwksp.h | 225 +-
lib/zstd/compress/zstd_double_fast.c | 413 +++-
lib/zstd/compress/zstd_fast.c | 441 ++--
lib/zstd/compress/zstd_lazy.c | 1352 ++++++++---
lib/zstd/compress/zstd_lazy.h | 38 +
lib/zstd/compress/zstd_ldm.c | 76 +-
lib/zstd/compress/zstd_ldm.h | 1 +
lib/zstd/compress/zstd_ldm_geartab.h | 5 +-
lib/zstd/compress/zstd_opt.c | 402 ++--
lib/zstd/decompress/huf_decompress.c | 912 ++++++--
lib/zstd/decompress/zstd_decompress.c | 80 +-
lib/zstd/decompress/zstd_decompress_block.c | 1022 +++++++--
lib/zstd/decompress/zstd_decompress_block.h | 10 +-
.../decompress/zstd_decompress_internal.h | 38 +-
lib/zstd/decompress_sources.h | 6 +
lib/zstd/zstd_common_module.c | 32 +
lib/zstd/zstd_compress_module.c | 6 +-
39 files changed, 6988 insertions(+), 2623 deletions(-)
create mode 100644 lib/zstd/common/portability_macros.h
create mode 100644 lib/zstd/compress/clevels.h
create mode 100644 lib/zstd/zstd_common_module.c

--
2.38.1