Commit a6dd1020 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

nvme: add missing endianess annotations in nvme_pr_command

Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Fixes: ad4fd3610c27 ("NVMe: Add persistent reservation ops")
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 1d277a63
...@@ -2094,8 +2094,8 @@ static int nvme_pr_command(struct block_device *bdev, u32 cdw10, ...@@ -2094,8 +2094,8 @@ static int nvme_pr_command(struct block_device *bdev, u32 cdw10,
memset(&c, 0, sizeof(c)); memset(&c, 0, sizeof(c));
c.common.opcode = op; c.common.opcode = op;
c.common.nsid = ns->ns_id; c.common.nsid = cpu_to_le32(ns->ns_id);
c.common.cdw10[0] = cdw10; c.common.cdw10[0] = cpu_to_le32(cdw10);
return nvme_submit_sync_cmd(ns->queue, &c, data, 16); return nvme_submit_sync_cmd(ns->queue, &c, data, 16);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment