Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring: don't use int for ABI

__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>

authored by

Pavel Begunkov and committed by
Jens Axboe
cf73d997 daa01d95

+1 -1
+1 -1
include/uapi/linux/io_uring.h
··· 50 50 }; 51 51 __u32 len; /* buffer size or number of iovecs */ 52 52 union { 53 - __kernel_rwf_t rw_flags; 53 + __u32 rw_flags; 54 54 __u32 fsync_flags; 55 55 __u16 poll_events; /* compatibility */ 56 56 __u32 poll32_events; /* word-reversed for BE */