Skip to content

Commit 4e9706c

Browse files
Jiapeng Chongaxboe
authored andcommitted
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'. Reported-by: Abaci Robot <[email protected]> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8660 Signed-off-by: Jiapeng Chong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 77a1cd5 commit 4e9706c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

io_uring/io_uring.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -643,12 +643,6 @@ static inline void __io_cq_lock(struct io_ring_ctx *ctx)
643643
spin_lock(&ctx->completion_lock);
644644
}
645645

646-
static inline void __io_cq_unlock(struct io_ring_ctx *ctx)
647-
{
648-
if (!ctx->lockless_cq)
649-
spin_unlock(&ctx->completion_lock);
650-
}
651-
652646
static inline void io_cq_lock(struct io_ring_ctx *ctx)
653647
__acquires(ctx->completion_lock)
654648
{

0 commit comments

Comments
 (0)