Skip to content

Commit a6dd102

Browse files
Christoph Hellwigaxboe
authored andcommitted
nvme: add missing endianess annotations in nvme_pr_command
Reported-by: kbuild test robot <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Fixes: ad4fd3610c27 ("NVMe: Add persistent reservation ops") Signed-off-by: Jens Axboe <[email protected]>
1 parent 1d277a6 commit a6dd102

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/nvme/host/pci.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,8 +2094,8 @@ static int nvme_pr_command(struct block_device *bdev, u32 cdw10,
20942094

20952095
memset(&c, 0, sizeof(c));
20962096
c.common.opcode = op;
2097-
c.common.nsid = ns->ns_id;
2098-
c.common.cdw10[0] = cdw10;
2097+
c.common.nsid = cpu_to_le32(ns->ns_id);
2098+
c.common.cdw10[0] = cpu_to_le32(cdw10);
20992099

21002100
return nvme_submit_sync_cmd(ns->queue, &c, data, 16);
21012101
}

0 commit comments

Comments
 (0)