diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2024-03-28 10:23:24 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-04-15 08:10:25 -0600 |
commit | 4e9706c6c8d1b159e2d04bee60189a1361f5afa9 (patch) | |
tree | d25a23489b75b083f9ca0b7d4f9320901a6e450d /io_uring | |
parent | 77a1cd5e795726235469c31cf13a25116bf2d712 (diff) |
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>
Diffstat (limited to 'io_uring')
-rw-r--r-- | io_uring/io_uring.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index 8489f1820ad9..0bee0ee5c7b2 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -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) { |