Skip to content
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

Merged
merged 3 commits into from
Mar 11, 2022

Conversation

cyberknight777
Copy link
Contributor

  • 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 [email protected]

- 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 <[email protected]>
@facebook-github-bot
Copy link

Hi @cyberknight777!

Thank you for your pull request and welcome to our community.

Action Required

In 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.

Process

In 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 CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@Cyan4973 Cyan4973 requested a review from terrelln March 7, 2022 17:14
@Cyan4973
Copy link
Contributor

Cyan4973 commented Mar 7, 2022

This is kernel code, so there might be specific reasons.
cc @terrelln .

@cyberknight777
Copy link
Contributor Author

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 <[email protected]>
…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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Copy link
Contributor

@terrelln terrelln left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cyberknight777!

@terrelln terrelln merged commit 05fc7c7 into facebook:dev Mar 11, 2022
cyberknight777 added a commit to cyberknight777/dragonheart_kernel_oneplus_sm8150 that referenced this pull request Mar 23, 2022
- 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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
cyberknight777 added a commit to cyberknight777/dragonheart_kernel_oneplus_sm8150 that referenced this pull request Mar 23, 2022
- 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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Tashar02 pushed a commit to Atom-X-Devs/scarlet_xiaomi_sdm660 that referenced this pull request Mar 23, 2022
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Tashar02 pushed a commit to Atom-X-Devs/scarlet_xiaomi_sdm660 that referenced this pull request Mar 23, 2022
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
cyberknight777 added a commit to cyberknight777/dragonheart_kernel_oneplus_sm8150 that referenced this pull request Mar 24, 2022
- 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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
cyberknight777 added a commit to cyberknight777/dragonheart_kernel_oneplus_sm8150 that referenced this pull request Mar 24, 2022
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
cyberknight777 added a commit to cyberknight777/dragonheart_kernel_oneplus_sm8150 that referenced this pull request Mar 24, 2022
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Tashar02 pushed a commit to Atom-X-Devs/scarlet_xiaomi_sdm660 that referenced this pull request Mar 24, 2022
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
taalojarvi pushed a commit to Stratosphere-Kernel/android_kernel_xiaomi_surya that referenced this pull request Mar 25, 2022
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Tashar02 pushed a commit to Atom-X-Devs/scarlet_xiaomi_sdm660 that referenced this pull request Mar 25, 2022
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Tashar02 pushed a commit to Atom-X-Devs/scarlet_xiaomi_sdm660 that referenced this pull request Mar 25, 2022
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
zeta96 pushed a commit to zeta96/L_soul_santoni_msm4.9 that referenced this pull request Mar 25, 2022
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Divyanshu-Modi pushed a commit to Atom-X-Devs/android_kernel_xiaomi_sm7325 that referenced this pull request Mar 26, 2022
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Signed-off-by: Divyanshu-Modi <[email protected]>
Change-Id: I6938dd8030dde2a797528338cff36a7d7eb072a0
Divyanshu-Modi pushed a commit to Atom-X-Devs/android_kernel_xiaomi_sm7325 that referenced this pull request Mar 26, 2022
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Signed-off-by: Divyanshu-Modi <[email protected]>
Change-Id: I6938dd8030dde2a797528338cff36a7d7eb072a0
Signed-off-by: Divyanshu-Modi <[email protected]>
Divyanshu-Modi pushed a commit to Atom-X-Devs/android_kernel_xiaomi_sm7325 that referenced this pull request Mar 26, 2022
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Signed-off-by: Divyanshu-Modi <[email protected]>
Change-Id: I6938dd8030dde2a797528338cff36a7d7eb072a0
Signed-off-by: Divyanshu-Modi <[email protected]>
Divyanshu-Modi pushed a commit to Atom-X-Devs/android_kernel_xiaomi_sm7325 that referenced this pull request Mar 27, 2022
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Signed-off-by: Divyanshu-Modi <[email protected]>
Change-Id: I6938dd8030dde2a797528338cff36a7d7eb072a0
Signed-off-by: Divyanshu-Modi <[email protected]>
Tashar02 pushed a commit to Atom-X-Devs/scarlet_xiaomi_sdm660 that referenced this pull request Mar 28, 2022
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
ptxxp pushed a commit to ptxxp/android_kernel_qcom_sdm845 that referenced this pull request Jan 5, 2025
- 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 <[email protected]>
Change-Id: If837c2f681814a26c644332eca3f77b4030824e4
Signed-off-by: TogoFire <[email protected]>
ekkusa pushed a commit to miyoubi/kernel_sony_sdm845 that referenced this pull request Jan 5, 2025
- 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 <[email protected]>
Change-Id: If837c2f681814a26c644332eca3f77b4030824e4
Signed-off-by: TogoFire <[email protected]>
TogoFire pushed a commit to dev-sm8350/kernel_oneplus_sm8350 that referenced this pull request Jan 7, 2025
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Change-Id: I05e3139a386011afa44688407777f402ae2c913b
Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Signed-off-by: TogoFire <[email protected]>
TogoFire pushed a commit to dev-sm8350/kernel_oneplus_sm8350 that referenced this pull request Jan 7, 2025
- 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 <[email protected]>
Change-Id: I4d9916dd279f3b0508ecb69754540f635ba7c5bc
Signed-off-by: TogoFire <[email protected]>
dopaemon pushed a commit to dopaemon/android_kernel_xiaomi_mayfly that referenced this pull request Jan 8, 2025
- 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 <[email protected]>
dopaemon pushed a commit to dopaemon/android_kernel_xiaomi_mayfly that referenced this pull request Jan 9, 2025
- 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 <[email protected]>
ptxxp pushed a commit to ptxxp/android_kernel_qcom_sdm845 that referenced this pull request Jan 11, 2025
- 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 <[email protected]>
Change-Id: If837c2f681814a26c644332eca3f77b4030824e4
Signed-off-by: TogoFire <[email protected]>
TogoFire pushed a commit to dev-sm8350/kernel_oneplus_sm8350 that referenced this pull request Jan 11, 2025
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Change-Id: I05e3139a386011afa44688407777f402ae2c913b
Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Signed-off-by: TogoFire <[email protected]>
TogoFire pushed a commit to dev-sm8350/kernel_oneplus_sm8350 that referenced this pull request Jan 11, 2025
- 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 <[email protected]>
Change-Id: I4d9916dd279f3b0508ecb69754540f635ba7c5bc
Signed-off-by: TogoFire <[email protected]>
ptxxp pushed a commit to ptxxp/android_kernel_qcom_sdm845 that referenced this pull request Jan 11, 2025
- 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 <[email protected]>
Change-Id: If837c2f681814a26c644332eca3f77b4030824e4
Signed-off-by: TogoFire <[email protected]>
TogoFire pushed a commit to dev-sm8350/kernel_oneplus_sm8350 that referenced this pull request Jan 11, 2025
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Change-Id: I05e3139a386011afa44688407777f402ae2c913b
Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Signed-off-by: TogoFire <[email protected]>
TogoFire pushed a commit to dev-sm8350/kernel_oneplus_sm8350 that referenced this pull request Jan 11, 2025
- 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 <[email protected]>
Change-Id: I4d9916dd279f3b0508ecb69754540f635ba7c5bc
Signed-off-by: TogoFire <[email protected]>
crrashh1542 pushed a commit to crrashh1542/android_kernel_microsoft_wsa that referenced this pull request Jan 11, 2025
- 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 <[email protected]>
(cherry picked from commit 7cba7b960d1295031ec971f82fc7806325aceeac)
KanonifyX pushed a commit to KanonifyX/android_kernel_tama_sdm845 that referenced this pull request Jan 11, 2025
- 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 <[email protected]>
Change-Id: If837c2f681814a26c644332eca3f77b4030824e4
Signed-off-by: TogoFire <[email protected]>
ptxxp pushed a commit to ptxxp/android_kernel_qcom_sdm845 that referenced this pull request Jan 12, 2025
- 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 <[email protected]>
Change-Id: If837c2f681814a26c644332eca3f77b4030824e4
Signed-off-by: TogoFire <[email protected]>
TogoFire pushed a commit to dev-sm8350/kernel_oneplus_sm8350 that referenced this pull request Jan 12, 2025
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Change-Id: I05e3139a386011afa44688407777f402ae2c913b
Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Signed-off-by: TogoFire <[email protected]>
TogoFire pushed a commit to dev-sm8350/kernel_oneplus_sm8350 that referenced this pull request Jan 12, 2025
- 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 <[email protected]>
Change-Id: I4d9916dd279f3b0508ecb69754540f635ba7c5bc
Signed-off-by: TogoFire <[email protected]>
KanonifyX pushed a commit to KanonifyX/android_kernel_tama_sdm845 that referenced this pull request Jan 13, 2025
- 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 <[email protected]>
Change-Id: If837c2f681814a26c644332eca3f77b4030824e4
Signed-off-by: TogoFire <[email protected]>
ptxxp pushed a commit to ptxxp/android_kernel_qcom_sdm845 that referenced this pull request Jan 13, 2025
- 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 <[email protected]>
Change-Id: If837c2f681814a26c644332eca3f77b4030824e4
Signed-off-by: TogoFire <[email protected]>
ptxxp pushed a commit to ptxxp/android_kernel_qcom_sdm845 that referenced this pull request Jan 13, 2025
- 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 <[email protected]>
Change-Id: If837c2f681814a26c644332eca3f77b4030824e4
Signed-off-by: TogoFire <[email protected]>
ptxxp pushed a commit to ptxxp/android_kernel_qcom_sdm845 that referenced this pull request Jan 13, 2025
- 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 <[email protected]>
Change-Id: If837c2f681814a26c644332eca3f77b4030824e4
Signed-off-by: TogoFire <[email protected]>
TogoFire pushed a commit to dev-sm8350/kernel_oneplus_sm8350 that referenced this pull request Jan 13, 2025
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Change-Id: I05e3139a386011afa44688407777f402ae2c913b
Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Signed-off-by: TogoFire <[email protected]>
TogoFire pushed a commit to dev-sm8350/kernel_oneplus_sm8350 that referenced this pull request Jan 13, 2025
- 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 <[email protected]>
Change-Id: I4d9916dd279f3b0508ecb69754540f635ba7c5bc
Signed-off-by: TogoFire <[email protected]>
KanonifyX pushed a commit to KanonifyX/android_kernel_tama_sdm845 that referenced this pull request Jan 14, 2025
- 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 <[email protected]>
Change-Id: If837c2f681814a26c644332eca3f77b4030824e4
Signed-off-by: TogoFire <[email protected]>
KanonifyX pushed a commit to KanonifyX/android_kernel_tama_sdm845 that referenced this pull request Jan 15, 2025
- 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 <[email protected]>
Change-Id: If837c2f681814a26c644332eca3f77b4030824e4
Signed-off-by: TogoFire <[email protected]>
hfdem pushed a commit to hfdem/android_gki_kernel_5.15_common that referenced this pull request Jan 15, 2025
- 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 <[email protected]>
J1yann pushed a commit to J1yann/android_gki_kernel_5.15_lts-bengal that referenced this pull request Jan 15, 2025
- 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 <[email protected]>
TogoFire pushed a commit to dev-sm8350/kernel_oneplus_sm8350 that referenced this pull request Jan 16, 2025
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Change-Id: I05e3139a386011afa44688407777f402ae2c913b
Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Signed-off-by: TogoFire <[email protected]>
TogoFire pushed a commit to dev-sm8350/kernel_oneplus_sm8350 that referenced this pull request Jan 16, 2025
- 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 <[email protected]>
Change-Id: I4d9916dd279f3b0508ecb69754540f635ba7c5bc
Signed-off-by: TogoFire <[email protected]>
SquareTea pushed a commit to merlinx-project/android_kernel_xiaomi_merlinx that referenced this pull request Jan 16, 2025
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 <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Signed-off-by: onettboots <[email protected]>
Signed-off-by: Edwiin Kusuma Jaya <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants