linux/lib/zstd
Nick Terrell cf30f6a5f0 lib: zstd: Add kernel-specific API
This patch:
- Moves `include/linux/zstd.h` -> `include/linux/zstd_lib.h`
- Updates modified zstd headers to yearless copyright
- Adds a new API in `include/linux/zstd.h` that is functionally
  equivalent to the in-use subset of the current API. Functions are
  renamed to avoid symbol collisions with zstd, to make it clear it is
  not the upstream zstd API, and to follow the kernel style guide.
- Updates all callers to use the new API.

There are no functional changes in this patch. Since there are no
functional change, I felt it was okay to update all the callers in a
single patch. Once the API is approved, the callers are mechanically
changed.

This patch is preparing for the 3rd patch in this series, which updates
zstd to version 1.4.10. Since the upstream zstd API is no longer exposed
to callers, the update can happen transparently.

Signed-off-by: Nick Terrell <terrelln@fb.com>
Tested By: Paul Jones <paul@pauljones.id.au>
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com> # LLVM/Clang v13.0.0 on x86-64
Tested-by: Jean-Denis Girard <jd.girard@sysnux.pf>
2021-11-08 16:55:21 -08:00
..
bitstream.h lib: Fix fall-through warnings for Clang 2020-11-19 07:23:47 -06:00
compress.c lib: zstd: Add kernel-specific API 2021-11-08 16:55:21 -08:00
decompress.c lib: zstd: Add kernel-specific API 2021-11-08 16:55:21 -08:00
entropy_common.c lib: Add zstd modules 2017-08-15 09:02:08 -07:00
error_private.h lib: Add zstd modules 2017-08-15 09:02:08 -07:00
fse_compress.c lib: Add zstd modules 2017-08-15 09:02:08 -07:00
fse_decompress.c lib: Prepare zstd for preboot environment, improve performance 2020-07-31 11:49:07 +02:00
fse.h lib: Add zstd modules 2017-08-15 09:02:08 -07:00
huf_compress.c lib: Fix fall-through warnings for Clang 2020-11-19 07:23:47 -06:00
huf_decompress.c lib: Add zstd modules 2017-08-15 09:02:08 -07:00
huf.h lib/decompressors: fix spelling mistakes 2021-07-01 11:06:05 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mem.h lib/zstd/mem.h: replace __inline by inline 2019-09-15 19:42:16 +02:00
zstd_common.c lib: Add zstd modules 2017-08-15 09:02:08 -07:00
zstd_internal.h lib: Prepare zstd for preboot environment, improve performance 2020-07-31 11:49:07 +02:00
zstd_opt.h lib: Add zstd modules 2017-08-15 09:02:08 -07:00