diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2022-01-14 00:20:05 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-01-13 12:43:05 -0700 |
commit | c84b8a3fef663933007e885535591b9d30bdc860 (patch) | |
tree | 20a7c9d2ad76b01f55a5c55958b99428bfbc9915 /fs/io_uring.c | |
parent | fb3b0673b7d5b477ed104949450cd511337ba3c6 (diff) | |
download | linux-c84b8a3fef663933007e885535591b9d30bdc860.tar.gz |
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: aa43477b0402 ("io_uring: poll rework")
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220113162005.3011-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r-- | fs/io_uring.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index de9c9de90655..fa3277844d2e 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -1192,12 +1192,6 @@ static inline bool req_ref_put_and_test(struct io_kiocb *req) return atomic_dec_and_test(&req->refs); } -static inline void req_ref_put(struct io_kiocb *req) -{ - WARN_ON_ONCE(!(req->flags & REQ_F_REFCOUNT)); - WARN_ON_ONCE(req_ref_put_and_test(req)); -} - static inline void req_ref_get(struct io_kiocb *req) { WARN_ON_ONCE(!(req->flags & REQ_F_REFCOUNT)); |