engines/io_uring: use correct type for fio_nvme_get_info()
authorJens Axboe <axboe@kernel.dk>
Tue, 21 Mar 2023 14:38:32 +0000 (08:38 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Mar 2023 14:38:32 +0000 (08:38 -0600)
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 <axboe@kernel.dk>
engines/io_uring.c

index 5393758aa616d406fb692bfb51532e0be0cdc526..54fdf7f3af1f0f60823b308893d3a80deeb02306 100644 (file)
@@ -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);