Re: [ammarfaizi2-block:axboe/linux-block/for-next 91/112] include/trace/events/nilfs2.h:191:1: sparse: sparse: cast to restricted blk_opf_t

From: Bart Van Assche
Date: Sun Jul 17 2022 - 10:50:54 EST


On 7/16/22 08:40, kernel test robot wrote:
sparse warnings: (new ones prefixed by >>)
fs/nilfs2/segment.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, include/trace/events/nilfs2.h):
include/trace/events/nilfs2.h:191:1: sparse: sparse: cast to restricted blk_opf_t
include/trace/events/nilfs2.h:191:1: sparse: sparse: cast to restricted blk_opf_t
include/trace/events/nilfs2.h:191:1: sparse: sparse: restricted blk_opf_t degrades to integer
include/trace/events/nilfs2.h:191:1: sparse: sparse: restricted blk_opf_t degrades to integer

I think the root cause of this and similar reports is in the tracing core core. I will post a patch.

Thanks,

Bart.