summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-01-16 08:41:05 -0700
committerJens Axboe <axboe@kernel.dk>2019-01-16 09:00:50 -0700
commitb93edf5b9eb6f392d40585e26df1663fccc0c09d (patch)
tree55f8cb83aa3cb6e1e738230d1ef9f9f07db38e9a /test
parentf16b83b29349dae16f07aae9a1709aed0dff247d (diff)
Sync with upstream API
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test')
-rw-r--r--test/io_uring-cp.c4
-rw-r--r--test/io_uring-test.c2
2 files changed, 3 insertions, 3 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;
diff --git a/test/io_uring-test.c b/test/io_uring-test.c
index 42a8745..a8e8cdf 100644
--- a/test/io_uring-test.c
+++ b/test/io_uring-test.c
@@ -59,7 +59,7 @@ int main(int argc, char *argv[])
sqe->ioprio = 0;
sqe->fd = fd;
sqe->off = offset;
- sqe->addr = &iovecs[i];
+ sqe->addr = (unsigned long) &iovecs[i];
sqe->len = 1;
sqe->buf_index = 0;
offset += iovecs[i].iov_len;