]> git.karo-electronics.de Git - linux-beck.git/commitdiff
lightnvm: update alignments for identify command
authorMatias Bjørling <m@bjorling.me>
Mon, 16 Nov 2015 14:34:38 +0000 (15:34 +0100)
committerJens Axboe <axboe@fb.com>
Mon, 16 Nov 2015 22:20:26 +0000 (15:20 -0700)
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>
drivers/nvme/host/lightnvm.c

index 2c35465163000c681c369421fa8dcb4e4d2e332e..60687ed68b5dd8a56ecddaa35d5f6e78117ff554 100644 (file)
@@ -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;
@@ -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 {