On 5/26/21 18:02, Bart Van Assche wrote: > 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. > > Cc: Damien Le Moal <damien.lemoal@xxxxxxx> > Cc: Christoph Hellwig <hch@xxxxxx> > Cc: Ming Lei <ming.lei@xxxxxxxxxx> > Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx> Looks good. Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@xxxxxxx>