diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-02-01 20:22:23 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-02-01 20:22:23 +0100 |
commit | a1ae0f74a73fbd113647321c49032a561b3f3781 (patch) | |
tree | 8b15485d541590ccc66841a9d807e4f244243576 /block/blk-mq-debugfs.c | |
parent | blk-mq-debugfs: Add missing __acquires() / __releases() annotations (diff) | |
download | linux-a1ae0f74a73fbd113647321c49032a561b3f3781.tar.xz linux-a1ae0f74a73fbd113647321c49032a561b3f3781.zip |
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>
Diffstat (limited to 'block/blk-mq-debugfs.c')
-rw-r--r-- | block/blk-mq-debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index 3a914e78ac11..0119ec533824 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -89,7 +89,7 @@ static int blk_mq_debugfs_rq_show(struct seq_file *m, void *v) struct request *rq = list_entry_rq(v); seq_printf(m, "%p {.cmd_flags=0x%x, .rq_flags=0x%x, .tag=%d, .internal_tag=%d}\n", - rq, rq->cmd_flags, (unsigned int)rq->rq_flags, + rq, rq->cmd_flags, (__force unsigned int)rq->rq_flags, rq->tag, rq->internal_tag); return 0; } |