io-uring: fixed an int type code style issue
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'.
Signed-off-by Gourav Roy <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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
@@ -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