]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: add type to op enum
authorDylan Yudaken <dylany@fb.com>
Tue, 26 Apr 2022 08:29:04 +0000 (01:29 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Apr 2022 12:50:42 +0000 (06:50 -0600)
commite37d939760d7f369a1081d710da180456d4be9d2
tree9d5e12cf51ac87ac90b9fb024a563b664d0b9644
parentc56bb1deb05314cdbb8098758e7d7b1a3b05bbc4
io_uring: add type to op enum

It is useful to have a type enum for opcodes, to allow the compiler to
assert that every value is used in a switch statement.

Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220426082907.3600028-2-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring.h