summaryrefslogtreecommitdiff
path: root/include/linux/genhd.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-11-10 01:08:11 +0300
committerJens Axboe <axboe@kernel.dk>2021-11-10 05:19:15 +0300
commitecaf97f474447821ade290cebbe82bc9b6b23cff (patch)
tree5080618070e33ad9567051096c4c3057ad0ace13 /include/linux/genhd.h
parent35e4c6c1a2fc2eb11b9306e95cda1fa06a511948 (diff)
downloadlinux-ecaf97f474447821ade290cebbe82bc9b6b23cff.tar.xz
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: 56f8da642bd8 ("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>
Diffstat (limited to 'include/linux/genhd.h')
0 files changed, 0 insertions, 0 deletions