aboutsummaryrefslogtreecommitdiffstats
path: root/module/zstd/include
diff options
context:
space:
mode:
authorColeman Kane <[email protected]>2021-12-05 15:18:46 -0500
committerBrian Behlendorf <[email protected]>2021-12-07 12:28:22 -0800
commita78f19d3ec8e5c0f82c860870f1ddc442ca45e25 (patch)
tree626336f5cc42f7c63f1acf943a7f8e1f59727729 /module/zstd/include
parent1e767532f20030385897fea2cf84fb59b69bd13c (diff)
Linux 5.16: Resolve ZSTD_isError symbol collision in Linux kernel
Newer zstd code introduced in the main kernel tree now creates a symbol collision with ZSTD_isError in our ZSTD code. This change relabels our implementation with a ZFS-specific symbol name, and undoes some macro-based micro-optimizations that conflict with the attempt to rename our internal-use version. Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Coleman Kane <[email protected]> Closes #12819
Diffstat (limited to 'module/zstd/include')
-rw-r--r--module/zstd/include/zstd_compat_wrapper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/module/zstd/include/zstd_compat_wrapper.h b/module/zstd/include/zstd_compat_wrapper.h
index 71adc7804..339713590 100644
--- a/module/zstd/include/zstd_compat_wrapper.h
+++ b/module/zstd/include/zstd_compat_wrapper.h
@@ -406,6 +406,7 @@
zfs_ZSTD_insertAndFindFirstIndex_internal
#define ZSTD_insertBlock zfs_ZSTD_insertBlock
#define ZSTD_invalidateRepCodes zfs_ZSTD_invalidateRepCodes
+#define ZSTD_isError zfs_ZSTD_isError
#define ZSTD_isFrame zfs_ZSTD_isFrame
#define ZSTD_ldm_adjustParameters zfs_ZSTD_ldm_adjustParameters
#define ZSTD_ldm_blockCompress zfs_ZSTD_ldm_blockCompress