-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[contrib][linux] Fix a warning in zstd_reset_cstream() #3088
Conversation
- This fixes the below warning: ../lib/zstd/zstd_compress_module.c: In function 'zstd_reset_cstream': ../lib/zstd/zstd_compress_module.c:136:9: warning: 'ZSTD_resetCStream' is deprecated [-Wdeprecated-declarations] 136 | return ZSTD_resetCStream(cstream, pledged_src_size); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_compress_module.c:15: ../include/linux/zstd_lib.h:2277:8: note: declared here 2277 | size_t ZSTD_resetCStream(ZSTD_CStream* zcs, unsigned long long pledgedSrcSize); | ^~~~~~~~~~~~~~~~~ ZSTD_resetCstream is deprecated and zstd_CCtx_reset is suggested to use hence let's switch to it. Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Hi @cyberknight777! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
This is kernel code, so there might be specific reasons. |
Hmm I've never gotten this warn when compiling ZSTD 1.5.2 with the Linux kernel. Only warn I've got was the one which I fixed and made the PR with. I'll try another way to fix the warn completely without triggering any other warnings. |
…tx_reset() - The previous patch throws the following warning: ../linux/lib/zstd/zstd_compress_module.c: In function ‘zstd_reset_cstream’: ../linux/lib/zstd/zstd_compress_module.c:136:34: error: enum conversion when passing argument 2 of ‘ZSTD_CCtx_reset’ is invalid in C++ [-Werror=c++-compat] 136 | return ZSTD_CCtx_reset(cstream, pledged_src_size); | ^~~~~~~~~~~~~~~~ In file included from ../linux/include/linux/zstd.h:26, from ../linux/lib/zstd/zstd_compress_module.c:15: ../linux/include/linux/zstd_lib.h:501:20: note: expected ‘ZSTD_ResetDirective’ {aka ‘enum <anonymous>’} but argument is of type ‘long long unsigned int’ 501 | ZSTDLIB_API size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset); | ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Since we have a choice to either use ZSTD_CCtx_reset or ZSTD_CCtx_setPledgedSrcSize instead of ZSTD_resetCStream, let's switch to ZSTD_CCtx_setPledgedSrcSize to not have any unnecessary warns alongside the kernel build and CI test build. Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
…ZSTD_resetCStream() - As referenced by Nick Terrelln ~ the ZSTD maintainer in the linux kernel, making zstd_reset_cstream() functionally identical to ZSTD_resetCStream() would be the perfect way to fix the warning without touching any core functions or breaking other parts of the code. Suggested-by: Nick Terrell <terrelln@fb.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cyberknight777!
- As referenced by Nick Terrelln ~ the ZSTD maintainer in the linux kernel [1], making zstd_reset_cstream() functionally identical to ZSTD_resetCStream() would be the perfect way to fix the warning without touching any core functions or breaking other parts of the code. [1]: facebook/zstd#3088 (comment) Suggested-by: Nick Terrell <terrelln@fb.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
- As referenced by Nick Terrelln ~ the ZSTD maintainer in the linux kernel [1], making zstd_reset_cstream() functionally identical to ZSTD_resetCStream() would be the perfect way to fix the warning without touching any core functions or breaking other parts of the code. [1]: facebook/zstd#3088 (comment) Suggested-by: Nick Terrell <terrelln@fb.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Subsequent to commit 15f1b5e {"lib: zstd: Fix a warning in zstd_reset_cstream()"} - As referenced by Nick Terrelln ~ the ZSTD maintainer in the linux kernel [1], making zstd_reset_cstream() functionally identical to ZSTD_resetCStream() would be the perfect way to fix the warning without touching any core functions or breaking other parts of the code. [1]: facebook/zstd#3088 (comment) Suggested-by: Nick Terrell <terrelln@fb.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Subsequent to commit 15f1b5e {"lib: zstd: Fix a warning in zstd_reset_cstream()"} - As referenced by Nick Terrelln ~ the ZSTD maintainer in the linux kernel [1], making zstd_reset_cstream() functionally identical to ZSTD_resetCStream() would be the perfect way to fix the warning without touching any core functions or breaking other parts of the code. [1]: facebook/zstd#3088 (comment) Suggested-by: Nick Terrell <terrelln@fb.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
- As referenced by Nick Terrelln ~ the ZSTD maintainer in the linux kernel [1], making zstd_reset_cstream() functionally identical to ZSTD_resetCStream() would be the perfect way to fix the warning without touching any core functions or breaking other parts of the code. [1]: facebook/zstd#3088 (comment) Suggested-by: Nick Terrell <terrelln@fb.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Subsequent to 15f1b5e137 {"lib: zstd: Fix a warning in zstd_reset_cstream()"} - As referenced by Nick Terrelln ~ the ZSTD maintainer in the linux kernel [1], making zstd_reset_cstream() functionally identical to ZSTD_resetCStream() would be the perfect way to fix the warning without touching any core functions or breaking other parts of the code. [1]: facebook/zstd#3088 (comment) Suggested-by: Nick Terrell <terrelln@fb.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Subsequent to 95ce392 {"lib: zstd: Fix a warning in zstd_reset_cstream()"} - As referenced by Nick Terrelln ~ the ZSTD maintainer in the linux kernel [1], making zstd_reset_cstream() functionally identical to ZSTD_resetCStream() would be the perfect way to fix the warning without touching any core functions or breaking other parts of the code. [1]: facebook/zstd#3088 (comment) Suggested-by: Nick Terrell <terrelln@fb.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Subsequent to commit 15f1b5e {"lib: zstd: Fix a warning in zstd_reset_cstream()"} - As referenced by Nick Terrelln ~ the ZSTD maintainer in the linux kernel [1], making zstd_reset_cstream() functionally identical to ZSTD_resetCStream() would be the perfect way to fix the warning without touching any core functions or breaking other parts of the code. [1]: facebook/zstd#3088 (comment) Suggested-by: Nick Terrell <terrelln@fb.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Subsequent to 15f1b5e137 {"lib: zstd: Fix a warning in zstd_reset_cstream()"} - As referenced by Nick Terrelln ~ the ZSTD maintainer in the linux kernel [1], making zstd_reset_cstream() functionally identical to ZSTD_resetCStream() would be the perfect way to fix the warning without touching any core functions or breaking other parts of the code. [1]: facebook/zstd#3088 (comment) Suggested-by: Nick Terrell <terrelln@fb.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Subsequent to commit 15f1b5e {"lib: zstd: Fix a warning in zstd_reset_cstream()"} - As referenced by Nick Terrelln ~ the ZSTD maintainer in the linux kernel [1], making zstd_reset_cstream() functionally identical to ZSTD_resetCStream() would be the perfect way to fix the warning without touching any core functions or breaking other parts of the code. [1]: facebook/zstd#3088 (comment) Suggested-by: Nick Terrell <terrelln@fb.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Subsequent to commit 15f1b5e {"lib: zstd: Fix a warning in zstd_reset_cstream()"} - As referenced by Nick Terrelln ~ the ZSTD maintainer in the linux kernel [1], making zstd_reset_cstream() functionally identical to ZSTD_resetCStream() would be the perfect way to fix the warning without touching any core functions or breaking other parts of the code. [1]: facebook/zstd#3088 (comment) Suggested-by: Nick Terrell <terrelln@fb.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Subsequent to 15f1b5e137 {"lib: zstd: Fix a warning in zstd_reset_cstream()"} - As referenced by Nick Terrelln ~ the ZSTD maintainer in the linux kernel [1], making zstd_reset_cstream() functionally identical to ZSTD_resetCStream() would be the perfect way to fix the warning without touching any core functions or breaking other parts of the code. [1]: facebook/zstd#3088 (comment) Suggested-by: Nick Terrell <terrelln@fb.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Subsequent to commit 15f1b5e137 {"lib: zstd: Fix a warning in zstd_reset_cstream()"} - As referenced by Nick Terrelln ~ the ZSTD maintainer in the linux kernel [1], making zstd_reset_cstream() functionally identical to ZSTD_resetCStream() would be the perfect way to fix the warning without touching any core functions or breaking other parts of the code. [1]: facebook/zstd#3088 (comment) Suggested-by: Nick Terrell <terrelln@fb.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com> Signed-off-by: Divyanshu-Modi <divyan.m05@gmail.com> Change-Id: I6938dd8030dde2a797528338cff36a7d7eb072a0
Subsequent to commit 15f1b5e137 {"lib: zstd: Fix a warning in zstd_reset_cstream()"} - As referenced by Nick Terrelln ~ the ZSTD maintainer in the linux kernel [1], making zstd_reset_cstream() functionally identical to ZSTD_resetCStream() would be the perfect way to fix the warning without touching any core functions or breaking other parts of the code. [1]: facebook/zstd#3088 (comment) Suggested-by: Nick Terrell <terrelln@fb.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com> Signed-off-by: Divyanshu-Modi <divyan.m05@gmail.com> Change-Id: I6938dd8030dde2a797528338cff36a7d7eb072a0 Signed-off-by: Divyanshu-Modi <divyan.m05@gmail.com>
Subsequent to commit 15f1b5e137 {"lib: zstd: Fix a warning in zstd_reset_cstream()"} - As referenced by Nick Terrelln ~ the ZSTD maintainer in the linux kernel [1], making zstd_reset_cstream() functionally identical to ZSTD_resetCStream() would be the perfect way to fix the warning without touching any core functions or breaking other parts of the code. [1]: facebook/zstd#3088 (comment) Suggested-by: Nick Terrell <terrelln@fb.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com> Signed-off-by: Divyanshu-Modi <divyan.m05@gmail.com> Change-Id: I6938dd8030dde2a797528338cff36a7d7eb072a0 Signed-off-by: Divyanshu-Modi <divyan.m05@gmail.com>
Subsequent to commit 15f1b5e137 {"lib: zstd: Fix a warning in zstd_reset_cstream()"} - As referenced by Nick Terrelln ~ the ZSTD maintainer in the linux kernel [1], making zstd_reset_cstream() functionally identical to ZSTD_resetCStream() would be the perfect way to fix the warning without touching any core functions or breaking other parts of the code. [1]: facebook/zstd#3088 (comment) Suggested-by: Nick Terrell <terrelln@fb.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com> Signed-off-by: Divyanshu-Modi <divyan.m05@gmail.com> Change-Id: I6938dd8030dde2a797528338cff36a7d7eb072a0 Signed-off-by: Divyanshu-Modi <divyan.m05@gmail.com>
Subsequent to commit 15f1b5e {"lib: zstd: Fix a warning in zstd_reset_cstream()"} - As referenced by Nick Terrelln ~ the ZSTD maintainer in the linux kernel [1], making zstd_reset_cstream() functionally identical to ZSTD_resetCStream() would be the perfect way to fix the warning without touching any core functions or breaking other parts of the code. [1]: facebook/zstd#3088 (comment) Suggested-by: Nick Terrell <terrelln@fb.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Change-Id: If837c2f681814a26c644332eca3f77b4030824e4 Signed-off-by: TogoFire <togofire@mailfence.com>
../lib/zstd/zstd_compress_module.c: In function 'zstd_reset_cstream':
../lib/zstd/zstd_compress_module.c:136:9: warning: 'ZSTD_resetCStream' is deprecated [-Wdeprecated-declarations]
136 | return ZSTD_resetCStream(cstream, pledged_src_size);
| ^~~~~~
In file included from ../include/linux/zstd.h:26,
from ../lib/zstd/zstd_compress_module.c:15:
../include/linux/zstd_lib.h:2277:8: note: declared here
2277 | size_t ZSTD_resetCStream(ZSTD_CStream* zcs, unsigned long long pledgedSrcSize);
| ^~~~~~~~~~~~~~~~~
ZSTD_resetCstream is deprecated and zstd_CCtx_reset is suggested to use hence let's switch to it.
Signed-off-by: Cyber Knight cyberknight755@gmail.com