zstd: Move zstd-common module exports to zstd_common_module.c
authorNick Terrell <terrelln@fb.com>
Fri, 14 Oct 2022 21:47:04 +0000 (14:47 -0700)
committerNick Terrell <terrelln@fb.com>
Mon, 24 Oct 2022 19:12:26 +0000 (12:12 -0700)
commit4782c725c1538aa9ef894ae4a3938db40be7f02c
tree4545905e2e9ff32ff8b606876eb18d9be013fa8e
parent19d7df98472851e1d2d11e00c177988d0f49683d
zstd: Move zstd-common module exports to zstd_common_module.c

The zstd codebase is imported from the upstream zstd repo, and is over-written on
every update. Upstream keeps the kernel specific code separate from the main
library. So the module definition is moved into the zstd_common_module.c file.
This matches the pattern followed by the zstd-compress and zstd-decompress files.

I've done build and boot testing on x86-64, i386, and aarch64. I've
verified that zstd built both as modules and built-in build and boot.

Signed-off-by: Nick Terrell <terrelln@fb.com>
lib/zstd/Makefile
lib/zstd/common/entropy_common.c
lib/zstd/common/zstd_common.c
lib/zstd/zstd_common_module.c [new file with mode: 0644]