Skip to contentSkip to conversation

io-uring: fixed an int type code style issue

PATCH New Gourav Roy 1 participant 1 message Dec 26, 2025 io_uring

lore
Share & tools
lore

Gourav Roy

author
#0 lore raw

PATCH 1/1 io-uring: fixed an int type code style issue

Fixed a code style issue to prefer 'unsigned int' over bare use of 'unsigned'.

---
 io_uring/alloc_cache.c | 2 +-
 io_uring/alloc_cache.h | 2 +-
 io_uring/cancel.c      | 2 +-
 io_uring/eventfd.c     | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
io_uring/alloc_cache.c +1 -1
index 58423888b736..9aee9f944d2c 100644
@@ -19,7 +19,7 @@ void io_alloc_cache_free(struct io_alloc_cache *cache,
 
 /* returns false if the cache was initialized properly */
 bool io_alloc_cache_init(struct io_alloc_cache *cache,
-			 unsigned max_nr, unsigned int size,
+			 unsigned int max_nr, unsigned int size,
 			 unsigned int init_bytes)
 {
 	cache->entries = kvmalloc_array(max_nr, sizeof(void *), GFP_KERNEL);
io_uring/alloc_cache.h +1 -1
index d33ce159ef33..8f70af6eb341 100644
@@ -11,7 +11,7 @@
 void io_alloc_cache_free(struct io_alloc_cache *cache,
 			 void (*free)(const void *));
 bool io_alloc_cache_init(struct io_alloc_cache *cache,
-			 unsigned max_nr, unsigned int size,
+			 unsigned int max_nr, unsigned int size,
 			 unsigned int init_bytes);
 
 void *io_cache_alloc_new(struct io_alloc_cache *cache, gfp_t gfp);
io_uring/cancel.c +1 -1
index ca12ac10c0ae..a9a674581871 100644
@@ -104,7 +104,7 @@ static int io_async_cancel_one(struct io_uring_task *tctx,
 }
 
 int io_try_cancel(struct io_uring_task *tctx, struct io_cancel_data *cd,
-		  unsigned issue_flags)
+		  unsigned int issue_flags)
 {
 	struct io_ring_ctx *ctx = cd->ctx;
 	int ret;
io_uring/eventfd.c +1 -1
index 78f8ab7db104..ecf899a9c697 100644
@@ -15,7 +15,7 @@ struct io_ev_fd {
 	struct eventfd_ctx	*cq_ev_fd;
 	unsigned int		eventfd_async;
 	/* protected by ->completion_lock */
-	unsigned		last_cq_tail;
+	unsigned int		last_cq_tail;
 	refcount_t		refs;
 	atomic_t		ops;
 	struct rcu_head		rcu;
Signature · 1 line
2.51.0