commit | 004a26b327c2e1ea88b2638cf16c0e30e82f297e | [log] [tgz] |
---|---|---|
author | Bart Van Assche <[email protected]> | Thu Jun 17 17:44:49 2021 -0700 |
committer | Jens Axboe <[email protected]> | Mon Jun 21 15:03:40 2021 -0600 |
tree | a408229e5180b7e567e44b4d2effb31cab0bee01 | |
parent | 3e9a99eba058f79736dccaf25934f8d6ca380fb3 [diff] |
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 <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Himanshu Madhani <[email protected]> Cc: Damien Le Moal <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Ming Lei <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>