]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
[linux] Remove usage of deprecated function
authorNick Terrell <terrelln@meta.com>
Fri, 17 Nov 2023 00:53:44 +0000 (16:53 -0800)
committerNick Terrell <nickrterrell@gmail.com>
Fri, 17 Nov 2023 17:54:10 +0000 (09:54 -0800)
ZSTD_resetDStream() is deprecated and replaced by ZSTD_DCtx_reset().
This removes deprecation warnings from the kernel build.

This change is a no-op, see the docs suggesting this replacement.

https://github.com/facebook/zstd/blob/fcbf2fde9ac7ce1562c7b3a394350e764bcb580f/lib/zstd.h#L2655-L2663

contrib/linux-kernel/zstd_decompress_module.c

index eb1c49e69722f8b0a6a19127739c5981081cfa5f..7d31518e9d5abb727b668bfb2f658b0529b7eeb0 100644 (file)
@@ -77,7 +77,7 @@ EXPORT_SYMBOL(zstd_init_dstream);
 
 size_t zstd_reset_dstream(zstd_dstream *dstream)
 {
-       return ZSTD_resetDStream(dstream);
+       return ZSTD_DCtx_reset(dstream, ZSTD_reset_session_only);
 }
 EXPORT_SYMBOL(zstd_reset_dstream);