All of lore.kernel.org
 help / color / mirror / Atom feed
From: hch@lst.de (Christoph Hellwig)
Subject: [PATCH] nvme/lightnvm: add missing endianess conversion in nvme_nvm_end_io
Date: Tue, 25 Apr 2017 18:41:00 +0200	[thread overview]
Message-ID: <20170425164100.GA15964@lst.de> (raw)
In-Reply-To: <20170421063017.26380-1-hch@lst.de>

Javier, Matias:  can I get a quick ACK?  This is the last patch needed
to make drivers/nvme warning-free.

On Fri, Apr 21, 2017@08:30:17AM +0200, Christoph Hellwig wrote:
> Found by sparse.
> 
> Signed-off-by: Christoph Hellwig <hch at lst.de>
> ---
>  drivers/nvme/host/lightnvm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/lightnvm.c
> index de61a4a03d78..e4e4e60b1224 100644
> --- a/drivers/nvme/host/lightnvm.c
> +++ b/drivers/nvme/host/lightnvm.c
> @@ -483,7 +483,7 @@ static void nvme_nvm_end_io(struct request *rq, int error)
>  {
>  	struct nvm_rq *rqd = rq->end_io_data;
>  
> -	rqd->ppa_status = nvme_req(rq)->result.u64;
> +	rqd->ppa_status = le64_to_cpu(nvme_req(rq)->result.u64);
>  	rqd->error = nvme_req(rq)->status;
>  	nvm_end_io(rqd);
>  
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> Linux-nvme mailing list
> Linux-nvme at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-nvme
---end quoted text---

  reply	other threads:[~2017-04-25 16:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-21  6:30 [PATCH] nvme/lightnvm: add missing endianess conversion in nvme_nvm_end_io Christoph Hellwig
2017-04-25 16:41 ` Christoph Hellwig [this message]
2017-04-25 16:43   ` Javier Gonzalez
2017-04-25 17:07   ` Matias Bjørling
2017-04-25 17:07     ` Matias Bjørling

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=20170425164100.GA15964@lst.de \
    --to=hch@lst.de \
    /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.