Files
Jens Axboe 29c1a8e6e7 io_uring/rw: cast rw->flags assignment to rwf_t
commit 825aea662b upstream.

kernel test robot reports that a recent change of the sqe->rw_flags
field throws a sparse warning on 32-bit archs:

>> io_uring/rw.c:291:19: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __kernel_rwf_t [usertype] flags @@     got unsigned int @@
   io_uring/rw.c:291:19: sparse:     expected restricted __kernel_rwf_t [usertype] flags
   io_uring/rw.c:291:19: sparse:     got unsigned int

Force cast it to rwf_t to silence that new sparse warning.

Fixes: cf73d9970e ("io_uring: don't use int for ABI")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202507032211.PwSNPNSP-lkp@intel.com/
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-20 18:36:35 +02:00
..
2025-01-28 15:10:40 -07:00
2025-02-17 16:43:04 -08:00
2025-03-07 13:41:08 -07:00
2025-02-28 19:35:37 -07:00
2025-07-24 08:58:26 +02:00
2025-08-20 18:35:41 +02:00
2025-08-20 18:35:41 +02:00
2024-11-13 11:44:30 -05:00
2024-02-09 09:04:39 -07:00
2024-02-09 09:04:39 -07:00
2025-02-24 12:10:38 -07:00