Skip to content

nvme-print: Fix nvme_bar_cap cps field alignment#3428

Open
brgoing wants to merge 1 commit into
linux-nvme:masterfrom
Micron-TPG-OSS:bgoing/fix-nvme-bar-cap-struct-layout
Open

nvme-print: Fix nvme_bar_cap cps field alignment#3428
brgoing wants to merge 1 commit into
linux-nvme:masterfrom
Micron-TPG-OSS:bgoing/fix-nvme-bar-cap-struct-layout

Conversation

@brgoing
Copy link
Copy Markdown
Contributor

@brgoing brgoing commented Jun 4, 2026

Fixes field alignments of the nvme_bar_cap struct by making cps part of the __u16 that was missing those two bits. This change fixes warnings regarding the struct size encountered when compiling on Windows.

Fixes field alignments of the nvme_bar_cap struct by making cps
part of the __u16 that was missing those two bits.
This change fixes warnings regarding the struct size encountered
when compiling on Windows.

Signed-off-by: Broc Going <bgoing@micron.com>
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.

1 participant