1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

[linux] Remove usage of deprecated function

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.

fcbf2fde9a/lib/zstd.h (L2655-L2663)
This commit is contained in:
Nick Terrell
2023-11-16 16:53:44 -08:00
committed by Nick Terrell
parent a419265d30
commit c2d470581e

View File

@ -77,7 +77,7 @@ EXPORT_SYMBOL(zstd_init_dstream);
size_t zstd_reset_dstream(zstd_dstream *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); EXPORT_SYMBOL(zstd_reset_dstream);