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

Minor fix to configure on s390x #12126

Merged
merged 1 commit into from
May 28, 2021
Merged

Conversation

rincebrain
Copy link
Contributor

Motivation and Context

configure on s390x on my testbed has a key check fail with a warning promoted to error about
a variable being used uninitialized. Specifically,
/usr/src/linux-headers-4.19.0-16-common/arch/s390/include/asm/atomic_ops.h:101:27: error: 'zfs_bdi_seq' is used uninitialized in this function [-Werror=uninitialized]

Description

Just inserts an atomic_long_set(X, 0); to silence its complaints.

How Has This Been Tested?

configure finished on Debian buster x86_64 and Debian buster s390x after this, while it failed on the latter before. (s390x also functions normally, albeit with a number of ZTS failures, after.)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

configure on s390x has a key check fail with an error about
a variable being used uninitialized. So let's initialize it.

Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label May 26, 2021
@behlendorf behlendorf self-assigned this May 26, 2021
@behlendorf
Copy link
Contributor

@ColinIanKing I wanted to make sure you saw this fix since I know you've sorted out some s390x build issues in the past. Would you mind taking a couple minutes to review this.

@ColinIanKing
Copy link
Contributor

I've currently not got access to H/W to test this and I'm loathed to build this in an emulated s390x QEMU instance as this will take me most of a day to complete. From what I see this change looks good to me.

@behlendorf
Copy link
Contributor

Not a problem, thanks for taking a look.

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels May 28, 2021
@behlendorf behlendorf merged commit d66b817 into openzfs:master May 28, 2021
behlendorf pushed a commit to behlendorf/zfs that referenced this pull request May 28, 2021
configure on s390x has a key check fail with an error about
a variable being used uninitialized. So let's initialize it.

Reviewed-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes openzfs#12126
sempervictus pushed a commit to sempervictus/zfs that referenced this pull request May 31, 2021
configure on s390x has a key check fail with an error about
a variable being used uninitialized. So let's initialize it.

Reviewed-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes openzfs#12126
@rincebrain rincebrain deleted the s390x_ftbfs branch October 23, 2021 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants