From: Christoph Hellwig Date: Thu, 22 Oct 2015 10:01:05 +0000 (+0200) Subject: nvme: add missing endianess annotations in nvme_pr_command X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a6dd1020d8ac55782f3e04856644cf68765f8c1b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git nvme: add missing endianess annotations in nvme_pr_command Reported-by: kbuild test robot Signed-off-by: Christoph Hellwig Fixes: ad4fd3610c27 ("NVMe: Add persistent reservation ops") Signed-off-by: Jens Axboe --- 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, 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); }