Skip to content

Commit

Permalink
nvme: add missing endianess annotations in nvme_pr_command
Browse files Browse the repository at this point in the history
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Fixes: ad4fd3610c27 ("NVMe: Add persistent reservation ops")
Signed-off-by: Jens Axboe <axboe@fb.com>
  • Loading branch information
Christoph Hellwig authored and Jens Axboe committed Oct 22, 2015
1 parent 1d277a6 commit a6dd102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/nvme/host/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2094,8 +2094,8 @@ static int nvme_pr_command(struct block_device *bdev, u32 cdw10,

memset(&c, 0, sizeof(c));
c.common.opcode = op;
c.common.nsid = ns->ns_id;
c.common.cdw10[0] = cdw10;
c.common.nsid = cpu_to_le32(ns->ns_id);
c.common.cdw10[0] = cpu_to_le32(cdw10);

return nvme_submit_sync_cmd(ns->queue, &c, data, 16);
}
Expand Down

0 comments on commit a6dd102

Please sign in to comment.