diff options
author | Baolin Wang <baolin.wang@linux.alibaba.com> | 2020-07-03 05:49:23 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-07-08 17:16:21 +0300 |
commit | 9056fc9fc514ecd2457a59c575863ecb07c4fa5e (patch) | |
tree | bba3226a800e3fcfb81868f92c511570b2d377cf | |
parent | 4e523547e2bf755d40cb10e85795c2f9620ff3fb (diff) | |
download | linux-9056fc9fc514ecd2457a59c575863ecb07c4fa5e.tar.xz |
nvme-pci: use the consistent return type of nvme_pci_iod_alloc_size()
The nvme_pci_iod_alloc_size() should return 'size_t' type to be
consistent with the sizeof return value.
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r-- | drivers/nvme/host/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 41c2055c6fc0..c9083c87c6cb 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -362,7 +362,7 @@ static int nvme_pci_npages_sgl(unsigned int num_seg) return DIV_ROUND_UP(num_seg * sizeof(struct nvme_sgl_desc), PAGE_SIZE); } -static unsigned int nvme_pci_iod_alloc_size(struct nvme_dev *dev, +static size_t nvme_pci_iod_alloc_size(struct nvme_dev *dev, unsigned int size, unsigned int nseg, bool use_sgl) { size_t alloc_size; |