Skip to contentSkip to conversation

io_uring: Remove unused function

PATCH Applied Jiapeng Chong 2 participants 2 messages Mar 28, 2024 io_uring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 io_uring: Remove unused function

The function are defined in the io_uring.c file, but not called elsewhere, so delete the unused function.

io_uring/io_uring.c:646:20: warning: unused function '__io_cq_unlock'.

---
 io_uring/io_uring.c | 6 ------
 1 file changed, 6 deletions(-)
io_uring/io_uring.c +0 -6
index 585fbc363eaf..8a9584c5c8ce 100644
@@ -643,12 +643,6 @@ static inline void __io_cq_lock(struct io_ring_ctx *ctx)
 		spin_lock(&ctx->completion_lock);
 }
 
-static inline void __io_cq_unlock(struct io_ring_ctx *ctx)
-{
-	if (!ctx->lockless_cq)
-		spin_unlock(&ctx->completion_lock);
-}
-
 static inline void io_cq_lock(struct io_ring_ctx *ctx)
 	__acquires(ctx->completion_lock)
 {
Signature · 1 line
2.20.1.7.g153144c
maintainer Applied
#1 lore raw
Quoted 6 lines · Jiapeng Chong

The function are defined in the io_uring.c file, but not called elsewhere, so delete the unused function.

io_uring/io_uring.c:646:20: warning: unused function '__io_cq_unlock'.

Applied, thanks!

[1/1] io_uring: Remove unused function

      commit: 976a421d86422abb554b4544ddcad31f1cade3a4

Best regards,

Signature · 1 line
Jens Axboe