[PATCH] nvme: fix cntlid type

Jens Axboe axboe at fb.com
Tue Apr 26 07:31:07 PDT 2016


On 04/16/2016 12:57 PM, Christoph Hellwig wrote:
> 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 at lst.de>
> ---
>   drivers/nvme/host/nvme.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h
> index 8e8fae8..9b96e75 100644
> --- a/drivers/nvme/host/nvme.h
> +++ b/drivers/nvme/host/nvme.h
> @@ -84,7 +84,7 @@ struct nvme_ctrl {
>   	char serial[20];
>   	char model[40];
>   	char firmware_rev[8];
> -	int cntlid;
> +	u16 cntlid;
>
>   	u32 ctrl_config;

Looks fine, added for 4.7.

-- 
Jens Axboe




More information about the Linux-nvme mailing list