From 671aa9f5c98c183de12d18c31525b533db0c186f Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 21 Mar 2023 08:38:32 -0600 Subject: [PATCH] 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 --- engines/io_uring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.25.1