aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-10-22 06:01:05 -0400
committerJens Axboe <axboe@fb.com>2015-10-22 11:15:48 -0400
commita6dd1020d8ac55782f3e04856644cf68765f8c1b (patch)
treeae765b71c084012f7b70c7ce9e3da983c4339128 /drivers/nvme
parent1d277a637a711af44574229c544c44126ad5bf32 (diff)
nvme: add missing endianess annotations in nvme_pr_command
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>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/host/pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 1fe3e27dace8..17524fd3e95f 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -2094,8 +2094,8 @@ static int nvme_pr_command(struct block_device *bdev, u32 cdw10,
2094 2094
2095 memset(&c, 0, sizeof(c)); 2095 memset(&c, 0, sizeof(c));
2096 c.common.opcode = op; 2096 c.common.opcode = op;
2097 c.common.nsid = ns->ns_id; 2097 c.common.nsid = cpu_to_le32(ns->ns_id);
2098 c.common.cdw10[0] = cdw10; 2098 c.common.cdw10[0] = cpu_to_le32(cdw10);
2099 2099
2100 return nvme_submit_sync_cmd(ns->queue, &c, data, 16); 2100 return nvme_submit_sync_cmd(ns->queue, &c, data, 16);
2101} 2101}