Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8660
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/20240328022324.78029-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Jiapeng Chong and committed by
Jens Axboe
4e9706c6 77a1cd5e

-6
-6
io_uring/io_uring.c
··· 643 643 spin_lock(&ctx->completion_lock); 644 644 } 645 645 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 - 652 646 static inline void io_cq_lock(struct io_ring_ctx *ctx) 653 647 __acquires(ctx->completion_lock) 654 648 {