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

FreeBSD: Add const qualifier to members of struct opensolaris_utsname #16210

Merged
merged 1 commit into from
May 30, 2024

Conversation

gmshake
Copy link
Contributor

@gmshake gmshake commented May 20, 2024

Motivation and Context

These members have directly references to the global variables exposed by the kernel. They are not going to be changed by this kernel module.

No functional change intended.

How Has This Been Tested?

Apply the patch on top of FreeBSD src tree sys/contrib/openzfs, build and reboot with new kernel / zfs module .

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)

This should unbreak the build with upcoming change of FreeBSD https://reviews.freebsd.org/D45227 . But even without that change, this should be fine.

Checklist:

These members have directly references to the global variables
exposed by the kernel. They are not going to be changed by this
kernel module.

Signed-off-by: Zhenlei Huang <zlei@FreeBSD.org>
@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label May 25, 2024
@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels May 29, 2024
@behlendorf behlendorf merged commit e235756 into openzfs:master May 30, 2024
23 of 24 checks passed
@gmshake
Copy link
Contributor Author

gmshake commented May 31, 2024

@behlendorf Thanks !

lundman pushed a commit to openzfsonwindows/openzfs that referenced this pull request Sep 4, 2024
These members have directly references to the global variables
exposed by the kernel. They are not going to be changed by this
kernel module.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Zhenlei Huang <zlei@FreeBSD.org>
Closes openzfs#16210
rkojedzinszky pushed a commit to dravanet/openzfs-zfs that referenced this pull request Nov 4, 2024
These members have directly references to the global variables
exposed by the kernel. They are not going to be changed by this
kernel module.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Zhenlei Huang <zlei@FreeBSD.org>
Closes openzfs#16210
ptr1337 pushed a commit to CachyOS/zfs that referenced this pull request Nov 21, 2024
These members have directly references to the global variables
exposed by the kernel. They are not going to be changed by this
kernel module.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Zhenlei Huang <zlei@FreeBSD.org>
Closes openzfs#16210
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.

2 participants