summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2025-07-02 21:31:54 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-08-28 16:21:23 +0200
commit6d96e0c7cf283af8811283ee4aca82f7bafbff7c (patch)
tree8860dda48f9700f54d3f197a771fb60fbc586091 /include
parentdba96dfa5a0f685b959dd28a52ac8dab0b805204 (diff)
downloadlinux-6d96e0c7cf283af8811283ee4aca82f7bafbff7c.tar.gz
linux-6d96e0c7cf283af8811283ee4aca82f7bafbff7c.tar.bz2
linux-6d96e0c7cf283af8811283ee4aca82f7bafbff7c.zip
io_uring: don't use int for ABI
commit cf73d9970ea4f8cace5d8f02d2565a2723003112 upstream. __kernel_rwf_t is defined as int, the actual size of which is implementation defined. It won't go well if some compiler / archs ever defines it as i64, so replace it with __u32, hoping that there is no one using i16 for it. Cc: stable@vger.kernel.org Fixes: 2b188cc1bb857 ("Add io_uring IO interface") Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/47c666c4ee1df2018863af3a2028af18feef11ed.1751412511.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/io_uring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h
index ea57526a5b89..1bad6701f2b2 100644
--- a/include/uapi/linux/io_uring.h
+++ b/include/uapi/linux/io_uring.h
@@ -23,7 +23,7 @@ struct io_uring_sqe {
__u64 addr; /* pointer to buffer or iovecs */
__u32 len; /* buffer size or number of iovecs */
union {
- __kernel_rwf_t rw_flags;
+ __u32 rw_flags;
__u32 fsync_flags;
__u16 poll_events;
__u32 sync_range_flags;