From 1a80a7638f4fb7a3d64179be42e76fe5caa52030 Mon Sep 17 00:00:00 2001 From: Broc Going Date: Thu, 4 Jun 2026 15:12:54 -0700 Subject: [PATCH] nvme-print: Fix nvme_bar_cap cps field alignment 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 --- nvme-print.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvme-print.h b/nvme-print.h index 122e5116fe..9ffcf5ca76 100644 --- a/nvme-print.h +++ b/nvme-print.h @@ -152,7 +152,7 @@ struct nvme_bar_cap { __u16 nssrs:1; __u16 css:8; __u16 bps:1; - __u8 cps:2; + __u16 cps:2; __u8 mpsmin:4; __u8 mpsmax:4; __u8 pmrs:1;