summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/liburing.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/include/liburing.h b/src/include/liburing.h
index 105f5dc..b5aab6e 100644
--- a/src/include/liburing.h
+++ b/src/include/liburing.h
@@ -735,8 +735,9 @@ static inline void io_uring_prep_getxattr(struct io_uring_sqe *sqe,
const char *path,
size_t len)
{
- io_uring_prep_rw(IORING_OP_GETXATTR, sqe, 0, name, len, (__u64) value);
- sqe->addr3 = (__u64) path;
+ io_uring_prep_rw(IORING_OP_GETXATTR, sqe, 0, name, len,
+ (__u64) (uintptr_t) value);
+ sqe->addr3 = (__u64) (uintptr_t) path;
sqe->xattr_flags = 0;
}
@@ -747,8 +748,9 @@ static inline void io_uring_prep_setxattr(struct io_uring_sqe *sqe,
int flags,
size_t len)
{
- io_uring_prep_rw(IORING_OP_SETXATTR, sqe, 0, name, len, (__u64) value);
- sqe->addr3 = (__u64) path;
+ io_uring_prep_rw(IORING_OP_SETXATTR, sqe, 0, name, len,
+ (__u64) (uintptr_t) value);
+ sqe->addr3 = (__u64) (uintptr_t) path;
sqe->xattr_flags = flags;
}
@@ -758,7 +760,8 @@ static inline void io_uring_prep_fgetxattr(struct io_uring_sqe *sqe,
const char *value,
size_t len)
{
- io_uring_prep_rw(IORING_OP_FGETXATTR, sqe, fd, name, len, (__u64) value);
+ io_uring_prep_rw(IORING_OP_FGETXATTR, sqe, fd, name, len,
+ (__u64) (uintptr_t) value);
sqe->xattr_flags = 0;
}
@@ -769,7 +772,8 @@ static inline void io_uring_prep_fsetxattr(struct io_uring_sqe *sqe,
int flags,
size_t len)
{
- io_uring_prep_rw(IORING_OP_FSETXATTR, sqe, fd, name, len, (__u64) value);
+ io_uring_prep_rw(IORING_OP_FSETXATTR, sqe, fd, name, len,
+ (__u64) (uintptr_t) value);
sqe->xattr_flags = flags;
}