Skip to content

Commit c84b8a3

Browse files
Jiapeng Chongaxboe
authored andcommitted
io_uring: Remove unused function req_ref_put
Fix the following clang warnings: fs/io_uring.c:1195:20: warning: unused function 'req_ref_put' [-Wunused-function]. Fixes: aa43477 ("io_uring: poll rework") Reported-by: Abaci Robot <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent fb3b067 commit c84b8a3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

fs/io_uring.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,12 +1192,6 @@ static inline bool req_ref_put_and_test(struct io_kiocb *req)
11921192
return atomic_dec_and_test(&req->refs);
11931193
}
11941194

1195-
static inline void req_ref_put(struct io_kiocb *req)
1196-
{
1197-
WARN_ON_ONCE(!(req->flags & REQ_F_REFCOUNT));
1198-
WARN_ON_ONCE(req_ref_put_and_test(req));
1199-
}
1200-
12011195
static inline void req_ref_get(struct io_kiocb *req)
12021196
{
12031197
WARN_ON_ONCE(!(req->flags & REQ_F_REFCOUNT));

0 commit comments

Comments
 (0)