[PATCH for-next 1/4] io_uring/net: improve io_get_notif_slot types

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Don't use signed int for slot indexing.

Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx>
---
 io_uring/notif.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
2.37.0




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux