summaryrefslogtreecommitdiff
path: root/io_uring/sqpoll.h
diff options
context:
space:
mode:
authorQuanfa Fu <quanfafu@gmail.com>2023-01-15 15:15:19 +0800
committerJens Axboe <axboe@kernel.dk>2023-01-29 15:17:40 -0700
commit88b80534f60f5ddf5f42218b280e0370f95eae78 (patch)
tree8717a3486de6024d89fb6940f4d5d922657bb122 /io_uring/sqpoll.h
parentc3f4d39ee4bc06f975ff45012398342ff276eb69 (diff)
io_uring: make io_sqpoll_wait_sq return void
Change the return type to void since it always return 0, and no need to do the checking in syscall io_uring_enter. Signed-off-by: Quanfa Fu <quanfafu@gmail.com> Link: https://lore.kernel.org/r/20230115071519.554282-1-quanfafu@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/sqpoll.h')
-rw-r--r--io_uring/sqpoll.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/sqpoll.h b/io_uring/sqpoll.h
index 0c3fbcd1f583..e1b8d508d22d 100644
--- a/io_uring/sqpoll.h
+++ b/io_uring/sqpoll.h
@@ -26,4 +26,4 @@ void io_sq_thread_stop(struct io_sq_data *sqd);
void io_sq_thread_park(struct io_sq_data *sqd);
void io_sq_thread_unpark(struct io_sq_data *sqd);
void io_put_sq_data(struct io_sq_data *sqd);
-int io_sqpoll_wait_sq(struct io_ring_ctx *ctx);
+void io_sqpoll_wait_sq(struct io_ring_ctx *ctx);