32-bit build warning cleanups
We need to cast pointers to uintptr_t first before casting to 64-bit,
or they complain about the differences in size.
@@ -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;
}
