From: Jens Axboe Date: Tue, 21 Mar 2023 14:38:32 +0000 (-0600) Subject: engines/io_uring: use correct type for fio_nvme_get_info() X-Git-Tag: fio-3.35~48 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=671aa9f5c98c183de12d18c31525b533db0c186f;p=fio.git engines/io_uring: use correct type for fio_nvme_get_info() powerpc64 compiles complain about casting unsigned long long to __u64, just use the right type to begin with. Fixes: b3d5e3fd80e3 ("nvme: add nvme opcodes, structures and helper functions") Signed-off-by: Jens Axboe --- diff --git a/engines/io_uring.c b/engines/io_uring.c index 5393758a..54fdf7f3 100644 --- a/engines/io_uring.c +++ b/engines/io_uring.c @@ -1148,7 +1148,7 @@ static int fio_ioring_cmd_open_file(struct thread_data *td, struct fio_file *f) if (o->cmd_type == FIO_URING_CMD_NVME) { struct nvme_data *data = NULL; unsigned int nsid, lba_size = 0; - unsigned long long nlba = 0; + __u64 nlba = 0; int ret; /* Store the namespace-id and lba size. */ @@ -1214,7 +1214,7 @@ static int fio_ioring_cmd_get_file_size(struct thread_data *td, if (o->cmd_type == FIO_URING_CMD_NVME) { struct nvme_data *data = NULL; unsigned int nsid, lba_size = 0; - unsigned long long nlba = 0; + __u64 nlba = 0; int ret; ret = fio_nvme_get_info(f, &nsid, &lba_size, &nlba);