Re: [PATCH] block: use enum type for blk_mq_alloc_data->rq_flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/9/2021 2:10 PM, Jens Axboe wrote:
> External email: Use caution opening links or attachments
> 
> 
> kernel test robot reports that we now trigger some sparse warnings:
> 
> block/blk-mq.h:169:32: sparse: sparse: restricted req_flags_t degrades to integer
> block/blk-mq.h:169:32: sparse: sparse: restricted req_flags_t degrades to integer
> block/blk-mq.h:169:32: sparse: sparse: restricted req_flags_t degrades to integer
> 
> which is due to ->rq_flags being an unsigned int, rather than the
> stronger type req_flags_t enum.
> 
> Change the type to req_flags_t to silence this warning.
> 
> Fixes: 56f8da642bd8 ("block: add rq_flags to struct blk_mq_alloc_data")
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
> 

Reviewed-by: Chaitanya Kulkarni <kch@xxxxxxxxxx>






[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux