Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 0fdb9a1

Browse files
isilenceaxboe
authored andcommitted
io_uring: make io_cq_unlock_post static
io_cq_unlock_post() is exclusively used in io_uring/io_uring.c, mark it static and don't expose to other files. Signed-off-by: Pavel Begunkov <[email protected]> Link: https://lore.kernel.org/r/3dc8127dda4514e1dd24bb32035faac887c5fa37.1687518903.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <[email protected]>
1 parent ff12617 commit 0fdb9a1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

io_uring/io_uring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ static void __io_cq_unlock_post_flush(struct io_ring_ctx *ctx)
666666
}
667667
}
668668

669-
void io_cq_unlock_post(struct io_ring_ctx *ctx)
669+
static void io_cq_unlock_post(struct io_ring_ctx *ctx)
670670
__releases(ctx->completion_lock)
671671
{
672672
io_commit_cqring(ctx);

io_uring/io_uring.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ static inline void io_req_task_work_add(struct io_kiocb *req)
110110
#define io_for_each_link(pos, head) \
111111
for (pos = (head); pos; pos = pos->link)
112112

113-
void io_cq_unlock_post(struct io_ring_ctx *ctx);
114-
115113
static inline struct io_uring_cqe *io_get_cqe_overflow(struct io_ring_ctx *ctx,
116114
bool overflow)
117115
{

0 commit comments

Comments
 (0)