projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1374e08
)
io_uring: add type to op enum
author
Dylan Yudaken
<dylany@fb.com>
Tue, 26 Apr 2022 08:29:04 +0000
(
01:29
-0700)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 26 Apr 2022 12:50:42 +0000
(06:50 -0600)
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
patch
|
blob
|
history
diff --git
a/include/uapi/linux/io_uring.h
b/include/uapi/linux/io_uring.h
index 5fb52bf3243553b8d2a14e6550c72a87259c12b5..49d1f3994f8d6b5d505e7a360cc99898475cc50b 100644
(file)
--- 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,