diff options
author | Bart Van Assche <[email protected]> | 2021-06-17 17:44:49 -0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2021-06-21 15:03:40 -0600 |
commit | 004a26b327c2e1ea88b2638cf16c0e30e82f297e (patch) | |
tree | a408229e5180b7e567e44b4d2effb31cab0bee01 /scripts/gdb/linux/timerlist.py | |
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]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions