nvme: fix cntlid type
authorChristoph Hellwig <hch@lst.de>
Sat, 16 Apr 2016 18:57:58 +0000 (14:57 -0400)
committerJens Axboe <axboe@fb.com>
Tue, 26 Apr 2016 14:31:22 +0000 (08:31 -0600)
Controller IDs in NVMe are unsigned 16-bit types.  In the Fabrics driver we
actually pass ctrl->id by reference, so we need it to have the correct type.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/nvme.h

index 8e8fae8..9b96e75 100644 (file)
@@ -84,7 +84,7 @@ struct nvme_ctrl {
        char serial[20];
        char model[40];
        char firmware_rev[8];
-       int cntlid;
+       u16 cntlid;
 
        u32 ctrl_config;