From b93edf5b9eb6f392d40585e26df1663fccc0c09d Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 16 Jan 2019 08:41:05 -0700 Subject: Sync with upstream API Signed-off-by: Jens Axboe --- test/io_uring-cp.c | 4 ++-- test/io_uring-test.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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; -- cgit