Skip to content

Conversation

@lundman
Copy link
Contributor

@lundman lundman commented Mar 4, 2023

Make sure all SHA2 transform function has wrappers

For ASMABI to work, it is required the calling convention is consistent.

Some were lost in #13741

Motivation and Context

ASMABI means we can share the same assembly file with Windows and macOS.

Description

How Has This Been Tested?

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:

@lundman lundman force-pushed the asmabi-pr branch 2 times, most recently from 094bcde to 7b9fb7b Compare March 4, 2023 08:36
Make sure all SHA2 transform function has wrappers

For ASMABI to work, it is required the calling convention
is consistent.

Signed-off-by: Joergen Lundman <lundman@lundman.net>
Copy link
Contributor

@mcmilk mcmilk left a comment

Choose a reason for hiding this comment

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

Thank you for fixing these.

@ryao
Copy link
Contributor

ryao commented Mar 6, 2023

The Fedora buildbot failure is #14584.

Copy link
Contributor

@ryao ryao left a comment

Choose a reason for hiding this comment

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

We need documentation on what not to do when writing new assembly code for other contributors to read. Otherwise, this is going to keep regressing in PRs. We could simply tell people to fix their PRs to be consistent with the existing code, but that is not going to necessarily mean that they will know what to do.

@behlendorf behlendorf added the Status: Accepted Ready to integrate (reviewed, tested) label Mar 6, 2023
@behlendorf behlendorf merged commit 47119d6 into openzfs:master Mar 6, 2023
mcmilk pushed a commit to mcmilk/zfs that referenced this pull request Mar 13, 2023
Make sure all SHA2 transform function has wrappers

For ASMABI to work, it is required the calling convention
is consistent.

Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Signed-off-by: Joergen Lundman <lundman@lundman.net>
Closes openzfs#14569
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