block, nvme: Introduce blk_mq_req_flags_t
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 9 Nov 2017 18:49:59 +0000 (10:49 -0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 11 Nov 2017 02:53:25 +0000 (19:53 -0700)
commit9a95e4ef709533efac4aafcb8bddf73f96db50ed
tree09408a0a31c43f4ffd5e7d08ef68a1677edd9330
parent3a0a529971ec4e2d933e9c7798db101dfb6b1aec
block, nvme: Introduce blk_mq_req_flags_t

Several block layer and NVMe core functions accept a combination
of BLK_MQ_REQ_* flags through the 'flags' argument but there is
no verification at compile time whether the right type of block
layer flags is passed. Make it possible for sparse to verify this.
This patch does not change any functionality.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Cc: linux-nvme@lists.infradead.org
Cc: Christoph Hellwig <hch@lst.de>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Cc: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-mq.c
block/blk-mq.h
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
include/linux/blk-mq.h
include/linux/blk_types.h
include/linux/blkdev.h