diff options
author | Coleman Kane <[email protected]> | 2021-12-05 15:18:46 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-12-07 12:28:22 -0800 |
commit | a78f19d3ec8e5c0f82c860870f1ddc442ca45e25 (patch) | |
tree | 626336f5cc42f7c63f1acf943a7f8e1f59727729 /module/zstd/lib | |
parent | 1e767532f20030385897fea2cf84fb59b69bd13c (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/lib')
-rw-r--r-- | module/zstd/lib/zstd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/module/zstd/lib/zstd.c b/module/zstd/lib/zstd.c index acdd4d9da..2766e5b74 100644 --- a/module/zstd/lib/zstd.c +++ b/module/zstd/lib/zstd.c @@ -6340,7 +6340,6 @@ extern "C" { /* ---- static assert (debug) --- */ #define ZSTD_STATIC_ASSERT(c) DEBUG_STATIC_ASSERT(c) -#define ZSTD_isError ERR_isError /* for inlining */ #define FSE_isError ERR_isError #define HUF_isError ERR_isError @@ -7347,7 +7346,6 @@ const char* ZSTD_versionString(void) { return ZSTD_VERSION_STRING; } /*-**************************************** * ZSTD Error Management ******************************************/ -#undef ZSTD_isError /* defined within zstd_internal.h */ /*! ZSTD_isError() : * tells if a return value is an error code * symbol is required for external callers */ |