]> git.proxmox.com Git - mirror_zfs.git/commit
Avoid symbol collision with in-kernel zstdlib
authorSebastian Gottschall <s.gottschall@dd-wrt.com>
Mon, 24 Aug 2020 19:20:41 +0000 (21:20 +0200)
committerGitHub <noreply@github.com>
Mon, 24 Aug 2020 19:20:41 +0000 (12:20 -0700)
commit184df27eef0abdc7ab2105b21257f753834b936b
tree32557e08b1fc7ec169ab02c0cc3ed69ee8e7de7e
parent04c37b6851fcfde84ec3be4ff63f5ee9022bf830
Avoid symbol collision with in-kernel zstdlib

For Linux, when zfs is compiled as an in kernel static variant
and the in kernel zstd library is compiled statically into the kernel
a symbol collision will occur.  This wrapper header renames all
of the relevant zstd functions to avoid this problem.

Reviewed-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Sebastian Gottschall <s.gottschall@dd-wrt.com>
Closes #10775
include/sys/zstd/zstd.h
lib/libzstd/Makefile.am
module/zfs/zio_compress.c
module/zstd/Makefile.in
module/zstd/README.md
module/zstd/include/zstd_compat_wrapper.h [new file with mode: 0644]
module/zstd/zfs_zstd.c