]> git.baikalelectronics.ru Git - kernel.git/commit
block/brd: Use the enum req_op type
authorBart Van Assche <bvanassche@acm.org>
Thu, 14 Jul 2022 18:06:38 +0000 (11:06 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Jul 2022 18:14:31 +0000 (12:14 -0600)
commitb879d109a2a1e69bc64203d44e3f277323a1bf9a
tree7cd2a4bcfc5ed6432016c9b1f1151ba55819e7d4
parent0cf95880600047c85fea18b407310040d509cecf
block/brd: Use the enum req_op type

Improve static type checking by using the enum req_op type for a
function argument that represents a request operation.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220714180729.1065367-13-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/brd.c