From: axboe@fb.com (Jens Axboe)
Subject: [PATCH] nvme: fix cntlid type
Date: Tue, 26 Apr 2016 08:31:07 -0600 [thread overview]
Message-ID: <571F7BAB.6080808@fb.com> (raw)
In-Reply-To: <1460833078-15646-1-git-send-email-hch@lst.de>
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
prev parent reply other threads:[~2016-04-26 14:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-16 18:57 [PATCH] nvme: fix cntlid type Christoph Hellwig
2016-04-26 11:47 ` Christoph Hellwig
2016-04-26 14:31 ` Jens Axboe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=571F7BAB.6080808@fb.com \
--to=axboe@fb.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.