aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Yudaken <[email protected]>2022-04-26 01:29:04 -0700
committerJens Axboe <[email protected]>2022-04-26 06:50:42 -0600
commitcc51eaa8b530bf070e76847a717adcbf603469b7 (patch)
tree9d5e12cf51ac87ac90b9fb024a563b664d0b9644
parent1374e08e2d44863c931910797852589803997668 (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r--include/uapi/linux/io_uring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h
index 5fb52bf32435..49d1f3994f8d 100644
--- a/include/uapi/linux/io_uring.h
+++ b/include/uapi/linux/io_uring.h
@@ -105,7 +105,7 @@ enum {
#define IORING_SETUP_R_DISABLED (1U << 6) /* start with ring disabled */
#define IORING_SETUP_SUBMIT_ALL (1U << 7) /* continue submit on error */
-enum {
+enum io_uring_op {
IORING_OP_NOP,
IORING_OP_READV,
IORING_OP_WRITEV,