]> git.baikalelectronics.ru Git - kernel.git/commit
block: use enum type for blk_mq_alloc_data->rq_flags
authorJens Axboe <axboe@kernel.dk>
Tue, 9 Nov 2021 22:08:11 +0000 (15:08 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Nov 2021 02:19:15 +0000 (19:19 -0700)
commit657d4dfa854bb93b91bc623ae92dd2d7e4911dc8
tree5080618070e33ad9567051096c4c3057ad0ace13
parented5fbac02594e541cb8ad957375195bb3d410f3d
block: use enum type for blk_mq_alloc_data->rq_flags

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: cdf826169eb7 ("block: add rq_flags to struct blk_mq_alloc_data")
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.h