summaryrefslogtreecommitdiff
path: root/io_uring
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-07-25 10:52:03 +0100
committerJens Axboe <axboe@kernel.dk>2022-07-25 09:47:45 -0600
commitcb309ae49da7a7c28f0051deea13970291134fac (patch)
tree16d06548ac739825582ed6869c3eaa9340fdf855 /io_uring
parentd8b6171bd58a5ffb9ad1dcfa60372db1b4db6d0d (diff)
io_uring/net: improve io_get_notif_slot types
Don't use signed int for slot indexing. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/e4d15aefebb5e55729dd9b5ec01ab16b70033343.1658742118.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring')
-rw-r--r--io_uring/notif.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/notif.h b/io_uring/notif.h
index 6cd73d7b965b..3e05d2cecb6f 100644
--- a/io_uring/notif.h
+++ b/io_uring/notif.h
@@ -67,7 +67,7 @@ static inline struct io_notif *io_get_notif(struct io_ring_ctx *ctx,
}
static inline struct io_notif_slot *io_get_notif_slot(struct io_ring_ctx *ctx,
- int idx)
+ unsigned idx)
__must_hold(&ctx->uring_lock)
{
if (idx >= ctx->nr_notif_slots)