On 5/14/22 10:23 AM, Vasily Averin wrote: > Fixes sparse warnings: > fs/io_uring.c: note: in included file (through include/trace/perf.h, > include/trace/define_trace.h, include/trace/events/io_uring.h): > ./include/trace/events/io_uring.h:488:1: sparse: > warning: incorrect type in assignment (different base types) > expected unsigned int [usertype] op_flags > got restricted __kernel_rwf_t const [usertype] rw_flags > fs/io_uring.c:3164:23: sparse: > warning: incorrect type in assignment (different base types) > expected unsigned int [usertype] flags > got restricted __kernel_rwf_t > fs/io_uring.c:3769:48: sparse: > warning: incorrect type in argument 2 (different base types) > expected restricted __kernel_rwf_t [usertype] flags > got unsigned int [usertype] flags Hand applied for 5.19, didn't apply directly. At some point it'd be nice to do the poll ones as they are the biggest issue wrt sparse, but honestly I've never really been very motivated to fix those sparse warnings as it would just be an unnecessary pain for backporting patches. -- Jens Axboe