Skip to content

Commit cc51eaa

Browse files
Dylan Yudakenaxboe
authored andcommitted
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]>
1 parent 1374e08 commit cc51eaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/uapi/linux/io_uring.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ enum {
105105
#define IORING_SETUP_R_DISABLED (1U << 6) /* start with ring disabled */
106106
#define IORING_SETUP_SUBMIT_ALL (1U << 7) /* continue submit on error */
107107

108-
enum {
108+
enum io_uring_op {
109109
IORING_OP_NOP,
110110
IORING_OP_READV,
111111
IORING_OP_WRITEV,

0 commit comments

Comments
 (0)