lkml.org 
[lkml]   [2022]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] sparse: use force attribute for __kernel_rwf_t casts
From
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

\
 
 \ /
  Last update: 2022-05-14 22:54    [W:0.079 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site