mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-07 02:19:54 +00:00
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: 2b188cc1bb ("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>
This commit is contained in:
committed by
Jens Axboe
parent
daa01d954b
commit
cf73d9970e
@@ -50,7 +50,7 @@ struct io_uring_sqe {
|
|||||||
};
|
};
|
||||||
__u32 len; /* buffer size or number of iovecs */
|
__u32 len; /* buffer size or number of iovecs */
|
||||||
union {
|
union {
|
||||||
__kernel_rwf_t rw_flags;
|
__u32 rw_flags;
|
||||||
__u32 fsync_flags;
|
__u32 fsync_flags;
|
||||||
__u16 poll_events; /* compatibility */
|
__u16 poll_events; /* compatibility */
|
||||||
__u32 poll32_events; /* word-reversed for BE */
|
__u32 poll32_events; /* word-reversed for BE */
|
||||||
|
|||||||
Reference in New Issue
Block a user