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

Move mingw tests from appveyor to github actions #2838

Merged
merged 1 commit into from
Nov 2, 2021

Conversation

binhdvo
Copy link
Contributor

@binhdvo binhdvo commented Oct 31, 2021

Moved mingw tests to github actions which allows them to run in parallel. The change of environment surfaced a warning error that's been suppressed.

@Cyan4973
Copy link
Contributor

Good ! With Appveyor CI now down to < 10mn, it should no longer be the iteration bottleneck.

sh -c "${{matrix.script}}"
IF ("${{matrix.artifact}}" -eq "true")
{
ECHO Creating artifacts
Copy link
Contributor

Choose a reason for hiding this comment

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

OK, so that's something I overlooked regarding this topic.

On top of Windows tests, Appveyor was also used to create the Windows binary packages at release time.
It's my understanding that you transferred this responsibility to Github Actions.

How does it work ?
In which cases are artifact created, and how to access them ?

For example, I note that, in this PR, there is a script section called "upload artifacts", but it's empty (runtime 0s).

Copy link
Contributor

Choose a reason for hiding this comment

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

I think a direct translation from the AppVeyor release artifact process doesn't work, since it seems like AppVeyor will just display any artifacts in the \artifacts folder, whereas I think GH Actions works a bit differently.

There's some documentation here: https://github.com/actions/upload-artifact on how to upload the artifact, it seems you just need an extra step that points to the artifact/directory you'd like to upload.

Copy link
Contributor Author

@binhdvo binhdvo Nov 1, 2021

Choose a reason for hiding this comment

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

Ah sorry I thought I'd gotten it working, I've reverted those tests back to appveyor for now and will try to get them working on GH in a followup.

Copy link
Contributor

Choose a reason for hiding this comment

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

The code looks correct to me,
but just to be on the safe side, have you also been able to test that the artifacts are still generated on Appveyor ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Excellent ! Thanks @binhdvo !

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hm, there are some appveyor failures now, but they don't look related to these changes, investigating.

@binhdvo binhdvo merged commit b399b47 into facebook:dev Nov 2, 2021
senhuang42 pushed a commit to senhuang42/zstd that referenced this pull request Nov 3, 2021
terrelln added a commit to terrelln/linux that referenced this pull request Nov 16, 2021
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
rsalvaterra pushed a commit to rsalvaterra/linux that referenced this pull request Nov 17, 2021
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
terrelln added a commit to terrelln/linux that referenced this pull request Nov 17, 2021
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
buzzcut-s pushed a commit to buzzcut-s/kernel-x86-5.15 that referenced this pull request Nov 18, 2021
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
cyberknight777 pushed a commit to Neternels/android_kernel_xiaomi_sunny that referenced this pull request Nov 18, 2021
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <[email protected]>
cyberknight777 pushed a commit to Neternels/android_kernel_xiaomi_sunny that referenced this pull request Nov 18, 2021
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <[email protected]>
cyberknight777 pushed a commit to cyberknight777/dragonheart_kernel_oneplus_sm8150 that referenced this pull request Nov 18, 2021
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <[email protected]>
cyberknight777 pushed a commit to cyberknight777/dragonheart_kernel_oneplus_sm8150 that referenced this pull request Nov 18, 2021
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <[email protected]>
cyberknight777 pushed a commit to Neternels/android_kernel_xiaomi_sunny that referenced this pull request Nov 18, 2021
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <[email protected]>
Forenche pushed a commit to stormbreaker-project/kernel_xiaomi_surya that referenced this pull request Nov 18, 2021
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <[email protected]>
Signed-off-by: Forenche <[email protected]>
cyberknight777 pushed a commit to Neternels/android_kernel_xiaomi_sunny that referenced this pull request Nov 18, 2021
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <[email protected]>
cyberknight777 pushed a commit to cyberknight777/dragonheart_kernel_oneplus_sm8150 that referenced this pull request Nov 18, 2021
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <[email protected]>
cyberknight777 pushed a commit to Neternels/android_kernel_realme_rmx2020 that referenced this pull request Nov 18, 2021
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <[email protected]>
cyberknight777 pushed a commit to stormbreaker-project/kernel_xiaomi_surya that referenced this pull request Nov 18, 2021
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <[email protected]>
Signed-off-by: Forenche <[email protected]>
cyberknight777 pushed a commit to cyberknight777/dragonheart_kernel_oneplus_sm8150 that referenced this pull request Nov 18, 2021
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <[email protected]>
cyberknight777 pushed a commit to stormbreaker-project/kernel_xiaomi_surya that referenced this pull request Nov 18, 2021
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <[email protected]>
cyberknight777 pushed a commit to Neternels/android_kernel_xiaomi_sunny that referenced this pull request Nov 18, 2021
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <[email protected]>
cyberknight777 pushed a commit to Neternels/android_kernel_realme_rmx2020 that referenced this pull request Nov 18, 2021
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <[email protected]>
terrelln added a commit to terrelln/linux that referenced this pull request Nov 18, 2021
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Forenche pushed a commit to stormbreaker-project/kernel_xiaomi_surya that referenced this pull request Nov 19, 2021
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <[email protected]>
Signed-off-by: Forenche <[email protected]>
Forenche pushed a commit to stormbreaker-project/kernel_xiaomi_surya that referenced this pull request Nov 19, 2021
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <[email protected]>
TogoFire pushed a commit to dev-sm8350/kernel_oneplus_sm8350 that referenced this pull request Sep 14, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Change-Id: I4857d2129f3ec61698fcff12d23b60600ccf54e3
Signed-off-by: Divyanshu-Modi <[email protected]>
Signed-off-by: Divyanshu-Modi <[email protected]>
(cherry picked from commit f1a7c1d)
Signed-off-by: TogoFire <[email protected]>
YYQ97 pushed a commit to YYQ97/kernel_common-5.15 that referenced this pull request Sep 16, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
YYQ97 pushed a commit to YYQ97/kernel_common-5.15 that referenced this pull request Sep 16, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
YYQ97 pushed a commit to YYQ97/kernel_common-5.15 that referenced this pull request Sep 16, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
DOITfit pushed a commit to DOITfit/android_kernel_xiaomi_mondrian that referenced this pull request Sep 16, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 17, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 17, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 17, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 17, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 17, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 17, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 18, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 18, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 18, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 18, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
hfdem pushed a commit to hfdem/android_gki_kernel_5.15_common that referenced this pull request Sep 18, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Rohail33 pushed a commit to Rohail33/Realking_kernel_sm8250 that referenced this pull request Sep 18, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Change-Id: Ida34153c3e1ad3236fc74dca19aa3efdcc0745c1
DigiGoon pushed a commit to DigiGoon/android_kernel_xiaomi_sm8350 that referenced this pull request Sep 18, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Signed-off-by: Divyanshu-Modi <[email protected]>
Change-Id: I05b4b77bb8d8a9e9e3c3bd0d5570596b4e82b0ac
Signed-off-by: Divyanshu-Modi <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 19, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Terminator-J pushed a commit to Terminator-J/crdroid_kernel_oneplus_sdm845 that referenced this pull request Sep 19, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Signed-off-by: Marco Zanin <[email protected]>
Terminator-J pushed a commit to Terminator-J/crdroid_kernel_oneplus_sdm845 that referenced this pull request Sep 19, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Signed-off-by: Marco Zanin <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 20, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 20, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 20, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 20, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 20, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 22, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 22, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 22, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this pull request Sep 22, 2024
The variable `litLengthSum` is only used by an `assert()`, so when
asserts are disabled the compiler doesn't see any usage and warns.

This issue is already fixed upstream by PR #2838 [0]. It was reported
by the Kernel test robot in [1].

Another approach would be to change zstd's disabled `assert()`
definition to use the argument in a disabled branch, instead of
ignoring the argument. I've avoided this approach because there are
some small changes necessary to get zstd to build, and I would
want to thoroughly re-test for performance, since that is slightly
changing the code in every function in zstd. It seems like a
trivial change, but some functions are pretty sensitive to small
changes. However, I think it is a valid approach that I would
like to see upstream take, so I've opened Issue #2868 to attempt
this upstream.

Lastly, I've chosen not to use __maybe_unused because all code
in lib/zstd/ must eventually be upstreamed. Upstream zstd can't
use __maybe_unused because it isn't portable across all compilers.

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/
[2] facebook/zstd#2868

Link: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[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