diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-01-16 08:41:05 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-01-16 09:00:50 -0700 |
commit | b93edf5b9eb6f392d40585e26df1663fccc0c09d (patch) | |
tree | 55f8cb83aa3cb6e1e738230d1ef9f9f07db38e9a /test/io_uring-cp.c | |
parent | f16b83b29349dae16f07aae9a1709aed0dff247d (diff) |
Sync with upstream API
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test/io_uring-cp.c')
-rw-r--r-- | test/io_uring-cp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/io_uring-cp.c b/test/io_uring-cp.c index ce624c5..5f928c0 100644 --- a/test/io_uring-cp.c +++ b/test/io_uring-cp.c @@ -73,7 +73,7 @@ static int queue_read(int fd, off_t size, off_t offset) sqe->ioprio = 0; sqe->fd = fd; sqe->off = offset; - sqe->addr = data->iov; + sqe->addr = (unsigned long) data->iov; sqe->buf_index = 0; sqe->user_data = (unsigned long) data; iovecs[sqe_index(sqe)].iov_len = size; @@ -123,7 +123,7 @@ static void queue_write(int fd, struct io_uring_cqe *cqe) sqe->ioprio = 0; sqe->fd = fd; sqe->off = data->offset; - sqe->addr = data->iov; + sqe->addr = (unsigned long) data->iov; sqe->buf_index = 0; sqe->user_data = 0; data->iov->iov_len = cqe->res; |