Skip to content

types: fix typo on nvme_mi_ccs definitions in public API#413

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
CodeConstruct:not-cascading-style-sheets
Jul 4, 2022
Merged

types: fix typo on nvme_mi_ccs definitions in public API#413
igaw merged 1 commit intolinux-nvme:masterfrom
CodeConstruct:not-cascading-style-sheets

Conversation

@jk-ozlabs
Copy link
Copy Markdown
Collaborator

The NVMe-MI spec defines the Composite Controller Status definitions
using the abbreviation CCS. However, the libnvme code (since initial
commit) has used CSS, not CCS (except for CCS_RDY...).

This change fixes the definitions to use the CCS names, and adds a set
of #defines to allow the old names to be used, including for the enum
itself.

Signed-off-by: Jeremy Kerr jk@codeconstruct.com.au

The NVMe-MI spec defines the Composite Controller Status definitions
using the abbreviation CCS. However, the libnvme code (since initial
commit) has used CSS, not CCS (except for CCS_RDY...).

This change fixes the definitions to use the _CCS_ names, and adds a set
of #defines to allow the old names to be used, including for the enum
itself.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Merging #413 (934d95a) into master (f2fc5ae) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #413   +/-   ##
=======================================
  Coverage   15.41%   15.41%           
=======================================
  Files          31       31           
  Lines        4866     4866           
  Branches      950      950           
=======================================
  Hits          750      750           
  Misses       3885     3885           
  Partials      231      231           
Impacted Files Coverage Δ
src/nvme/types.h 0.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f2fc5ae...934d95a. Read the comment docs.

@jk-ozlabs
Copy link
Copy Markdown
Collaborator Author

There may be implications when changing these, particularly with the public API. I'm happy to rework this if necessary, or can just use the old names in my upcoming changes.

@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Jul 4, 2022

I think those defines should take care with the backwards compatibility. At least I can't see any problems with it...

@igaw igaw merged commit 88fdd75 into linux-nvme:master Jul 4, 2022
@jk-ozlabs jk-ozlabs deleted the not-cascading-style-sheets branch July 28, 2022 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants