Skip to content

Commit 4fa07ed

Browse files
Jiapeng Chongaxboe
authored andcommitted
io_uring/notif: Remove the unused function io_notif_complete()
The function io_notif_complete() is defined in the notif.c file, but not called elsewhere, so delete this unused function. io_uring/notif.c:24:20: warning: unused function 'io_notif_complete' [-Wunused-function]. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2047 Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Reviewed-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/20220905020436.51894-1-jiapeng.chong@linux.alibaba.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 916d72c commit 4fa07ed

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

io_uring/notif.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@ static void __io_notif_complete_tw(struct io_kiocb *notif, bool *locked)
2121
io_req_task_complete(notif, locked);
2222
}
2323

24-
static inline void io_notif_complete(struct io_kiocb *notif)
25-
__must_hold(&notif->ctx->uring_lock)
26-
{
27-
bool locked = true;
28-
29-
__io_notif_complete_tw(notif, &locked);
30-
}
31-
3224
static void io_uring_tx_zerocopy_callback(struct sk_buff *skb,
3325
struct ubuf_info *uarg,
3426
bool success)

0 commit comments

Comments
 (0)