From bcd1edeae402a35807bd4167e4ecadc77e606c43 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Thu, 29 Sep 2016 13:26:56 -0700 Subject: [PATCH] nvmf: replace off_t with uint64_t The offset variable is used to store the result of a uint64_t * uint32_t multiplication; a signed integer is not the correct type for the result. Change-Id: If1fb22314ba7e3cec91808cc051678f809c9e58b Signed-off-by: Daniel Verkamp --- lib/nvmf/virtual.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nvmf/virtual.c b/lib/nvmf/virtual.c index 48e6d7f89..a20981b00 100644 --- a/lib/nvmf/virtual.c +++ b/lib/nvmf/virtual.c @@ -387,7 +387,7 @@ nvmf_virtual_ctrlr_rw_cmd(struct spdk_bdev *bdev, struct spdk_io_channel *ch, uint64_t lba_address; uint64_t blockcnt; uint64_t io_bytes; - off_t offset; + uint64_t offset; uint64_t llen; struct spdk_nvme_cmd *cmd = &req->cmd->nvme_cmd; struct spdk_nvme_cpl *response = &req->rsp->nvme_cpl;