Skip to content

Simple change to fix building in recent environments. #12059

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

Merged
merged 1 commit into from
May 20, 2021

Conversation

rincebrain
Copy link
Contributor

Motivation and Context

Quick change that was the sole thing required to unbreak building with 5.12.4.

Description

Per @ensch:
Just renaming the _init function to something else, so that the macro expansion does not confuse it with __init, fixes the problem for me.

How Has This Been Tested?

It built with bb-build-linux.sh. That's all I've tried.

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:

@@ -264,7 +264,7 @@ _fini(void)
}

#if defined(_KERNEL)
module_init(_init);
module_init(openzfs_init);
module_exit(_fini);
Copy link
Contributor

Choose a reason for hiding this comment

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

it'd probably be best to rename _fini, too, for symmetry

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds reasonable to me. Hopefully the buildbots don't report I somehow ruined everything.

Renamed _fini too for symmetry.

Closes: openzfs#11987
Closes: openzfs#12056

Suggested-by: @ensch
Signed-off-by: Rich Ercolani <[email protected]>
@rincebrain rincebrain force-pushed the simple_init_change branch from 8377164 to ef0ecd4 Compare May 17, 2021 16:08
@behlendorf behlendorf added the Status: Accepted Ready to integrate (reviewed, tested) label May 20, 2021
@behlendorf behlendorf merged commit 1d106ab into openzfs:master May 20, 2021
behlendorf pushed a commit to behlendorf/zfs that referenced this pull request May 28, 2021
Renamed _fini too for symmetry.

Suggested-by: @ensch
Reviewed-by: Tony Nguyen <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Rich Ercolani <[email protected]>
Closes openzfs#12059
Closes: openzfs#11987
Closes: openzfs#12056
sempervictus pushed a commit to sempervictus/zfs that referenced this pull request May 31, 2021
Renamed _fini too for symmetry.

Suggested-by: @ensch
Reviewed-by: Tony Nguyen <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Rich Ercolani <[email protected]>
Closes openzfs#12059
Closes: openzfs#11987
Closes: openzfs#12056
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Jun 10, 2021
Renamed _fini too for symmetry.

Suggested-by: @ensch
Reviewed-by: Tony Nguyen <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Rich Ercolani <[email protected]>
Closes openzfs#12059
Closes: openzfs#11987
Closes: openzfs#12056
tonyhutter pushed a commit that referenced this pull request Jun 23, 2021
Renamed _fini too for symmetry.

Suggested-by: @ensch
Reviewed-by: Tony Nguyen <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Rich Ercolani <[email protected]>
Closes #12059
Closes: #11987
Closes: #12056
@rincebrain rincebrain deleted the simple_init_change 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.

4 participants