projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8b6171
)
io_uring/net: improve io_get_notif_slot types
author
Pavel Begunkov
<asml.silence@gmail.com>
Mon, 25 Jul 2022 09:52:03 +0000
(10:52 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 25 Jul 2022 15:47:45 +0000
(09:47 -0600)
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>
io_uring/notif.h
patch
|
blob
|
history
diff --git
a/io_uring/notif.h
b/io_uring/notif.h
index 6cd73d7b965b280a72d502a219658a28cdd9877b..3e05d2cecb6f06454f30f4258be1184b0b0099a6 100644
(file)
--- 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)