Skip to content

Commit

Permalink
[linux] Remove usage of deprecated function
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Nick Terrell committed Nov 17, 2023
1 parent ee0410b commit d8ae0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/linux-kernel/zstd_decompress_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d8ae0a6

Please sign in to comment.