Skip to content

Commit

Permalink
lightnvm: update alignments for identify command
Browse files Browse the repository at this point in the history
A single 8 bit and 16 bit reserve field were inserted in the
specification to align fields appropriately. Reflect this in the
identify group structure.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
  • Loading branch information
Matias Bjørling authored and Jens Axboe committed Nov 16, 2015
1 parent 1145046 commit 36d5dbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/nvme/host/lightnvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,13 @@ struct nvme_nvm_id_group {
__u8 num_ch;
__u8 num_lun;
__u8 num_pln;
__u8 rsvd1;
__le16 num_blk;
__le16 num_pg;
__le16 fpg_sz;
__le16 csecs;
__le16 sos;
__le16 rsvd2;
__le32 trdt;
__le32 trdm;
__le32 tprt;
Expand All @@ -168,7 +170,7 @@ struct nvme_nvm_id_group {
__le32 tbem;
__le32 mpos;
__le16 cpar;
__u8 reserved[913];
__u8 reserved[910];
} __packed;

struct nvme_nvm_addr_format {
Expand Down

0 comments on commit 36d5dbc

Please sign in to comment.