Skip to content

Commit ecc39c7

Browse files
isilencegregkh
authored andcommitted
io_uring: don't use int for ABI
commit cf73d99 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: [email protected] Fixes: 2b188cc ("Add io_uring IO interface") Signed-off-by: Pavel Begunkov <[email protected]> Link: https://lore.kernel.org/r/47c666c4ee1df2018863af3a2028af18feef11ed.1751412511.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 880e4ff commit ecc39c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/uapi/linux/io_uring.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct io_uring_sqe {
5050
};
5151
__u32 len; /* buffer size or number of iovecs */
5252
union {
53-
__kernel_rwf_t rw_flags;
53+
__u32 rw_flags;
5454
__u32 fsync_flags;
5555
__u16 poll_events; /* compatibility */
5656
__u32 poll32_events; /* word-reversed for BE */

0 commit comments

Comments
 (0)