]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit01d58560466b484f5581a1030f22ae20d649e343
tree09408a0a31c43f4ffd5e7d08ef68a1677edd9330
parent88d47a6cf7ee24049a6682ea4c90d489cebe3226
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