diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2022-09-05 05:04:36 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-09-05 20:42:39 +0300 |
commit | 4fa07edbb7eacfb56b3aa64f590e9f38e7f1042c (patch) | |
tree | c50fab86e86a20e3455e8c8d1e70094116ceab4f /io_uring/notif.c | |
parent | 916d72c10a4ca80ea51f1421e774cb765b53f28f (diff) | |
download | linux-4fa07edbb7eacfb56b3aa64f590e9f38e7f1042c.tar.xz |
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>
Diffstat (limited to 'io_uring/notif.c')
-rw-r--r-- | io_uring/notif.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/io_uring/notif.c b/io_uring/notif.c index 38d77165edc3..e37c6569d82e 100644 --- a/io_uring/notif.c +++ b/io_uring/notif.c @@ -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) |