io_uring/notif: Remove the unused function io_notif_complete()
PATCH 1/1 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].
--- io_uring/notif.c | 8 -------- 1 file changed, 8 deletions(-)
io_uring/notif.c +0 -8
@@ -21,14 +21,6 @@ static void __io_notif_complete_tw(struct io_kiocb *notif, bool *locked)io_req_task_complete (notif, locked); } -static inline void io_notif_complete (struct io_kiocb *notif) - __must_hold(¬if->ctx->uring_lock) -{ -bool locked = true; - -__io_notif_complete_tw (notif, &locked); -} -static void io_uring_tx_zerocopy_callback (struct sk_buff *skb,struct ubuf_info *uarg,bool success)
Signature · 1 line
2.20.1.7.g153144c
Quoted 2 lines · Jiapeng Chong
The function
io_notif_complete()is defined in thenotif.cfile, but not called elsewhere, so delete this unused function.
Yep, forgot to kill it, LGTM
Quoted 28 lines
io_uring/notif.c:24:20: warning: unused function 'io_notif_complete' [-Wunused-function].Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>--- io_uring/notif.c | 8 -------- 1 file changed, 8 deletions(-)io_uring/notif.c +0
-8@@ -21,14 +21,6 @@ static void __io_notif_complete_tw(struct io_kiocb *notif, bool *locked)io_req_task_complete (notif, locked); } -static inline void io_notif_complete (struct io_kiocb *notif) - __must_hold(¬if->ctx->uring_lock) -{ -bool locked = true; - -__io_notif_complete_tw (notif, &locked); -} -static void io_uring_tx_zerocopy_callback (struct sk_buff *skb,struct ubuf_info *uarg,bool success)
Signature · 1 line
Pavel Begunkov
Quoted 6 lines · Jiapeng Chong
The function
io_notif_complete()is defined in thenotif.cfile, but not called elsewhere, so delete this unused function.
io_uring/notif.c:24:20: warning: unused function 'io_notif_complete' [-Wunused-function].
Applied, thanks!
[1/1] io_uring/notif: Remove the unused function io_notif_complete()
commit: 4fa07edbb7eacfb56b3aa64f590e9f38e7f1042c
Best regards,
Signature · 1 line
Jens Axboe