blk-mq-debug: Avoid that sparse complains about req_flags_t usage
authorBart Van Assche <bart.vanassche@sandisk.com>
Wed, 1 Feb 2017 19:22:23 +0000 (12:22 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 1 Feb 2017 19:22:23 +0000 (12:22 -0700)
commita1ae0f74a73fbd113647321c49032a561b3f3781
tree8b15485d541590ccc66841a9d807e4f244243576
parentf3bcb0e60685acfc258a20caa0607e084271c482
blk-mq-debug: Avoid that sparse complains about req_flags_t usage

Avoid that sparse reports the following complaints:

block/elevator.c:541:29: warning: incorrect type in assignment (different base types)
block/elevator.c:541:29:    expected bool [unsigned] [usertype] next_sorted
block/elevator.c:541:29:    got restricted req_flags_t

block/blk-mq-debugfs.c:92:54: warning: cast from restricted req_flags_t

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-debugfs.c
block/elevator.c