summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2020-02-06 17:02:09 +0100
committerJens Axboe <axboe@kernel.dk>2020-02-06 09:03:00 -0700
commite75144f6d048379261d56f4972c3cb6210cda690 (patch)
tree89137f8068e1bf96b75e845fcf6f55780f66268d
parenta68caac2253dbb3c4c45a5bb65d76c54f6d83df5 (diff)
downloadliburing-e75144f6d048379261d56f4972c3cb6210cda690.tar.gz
liburing-e75144f6d048379261d56f4972c3cb6210cda690.tar.bz2
io_uring_cqe_get_data() only requires a const struct io_uring_cqe *cqe
Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--src/include/liburing.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/liburing.h b/src/include/liburing.h
index faed2e7..44f18fd 100644
--- a/src/include/liburing.h
+++ b/src/include/liburing.h
@@ -179,7 +179,7 @@ static inline void io_uring_sqe_set_data(struct io_uring_sqe *sqe, void *data)
sqe->user_data = (unsigned long) data;
}
-static inline void *io_uring_cqe_get_data(struct io_uring_cqe *cqe)
+static inline void *io_uring_cqe_get_data(const struct io_uring_cqe *cqe)
{
return (void *) (uintptr_t) cqe->user_data;
}