diff options
author | Bart Van Assche <bvanassche@acm.org> | 2021-06-18 03:44:49 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-06-22 00:03:40 +0300 |
commit | 004a26b327c2e1ea88b2638cf16c0e30e82f297e (patch) | |
tree | a408229e5180b7e567e44b4d2effb31cab0bee01 /block/blk-rq-qos.c | |
parent | 3e9a99eba058f79736dccaf25934f8d6ca380fb3 (diff) | |
download | linux-004a26b327c2e1ea88b2638cf16c0e30e82f297e.tar.xz |
block/mq-deadline: Improve compile-time argument checking
Modern compilers complain if an out-of-range value is passed to a function
argument that has an enumeration type. Let the compiler detect out-of-range
data direction arguments instead of verifying the data_dir argument at
runtime.
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Cc: Damien Le Moal <damien.lemoal@wdc.com>
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/20210618004456.7280-10-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-rq-qos.c')
0 files changed, 0 insertions, 0 deletions