vendor/liburing/src/queue.c in polyphony-0.98 vs vendor/liburing/src/queue.c in polyphony-0.99
- old
+ new
@@ -79,11 +79,11 @@
err = ret;
break;
}
if (!cqe && !data->wait_nr && !data->submit) {
/*
- * If we already looped once, we already entererd
+ * If we already looped once, we already entered
* the kernel. Since there's nothing to submit or
* wait for, don't keep retrying.
*/
if (looped || !cq_ring_needs_enter(ring)) {
if (!err)
@@ -199,10 +199,10 @@
/*
* Sync internal state with kernel ring state on the SQ side. Returns the
* number of pending items in the SQ ring, for the shared ring.
*/
-unsigned __io_uring_flush_sq(struct io_uring *ring)
+static unsigned __io_uring_flush_sq(struct io_uring *ring)
{
struct io_uring_sq *sq = &ring->sq;
unsigned tail = sq->sqe_tail;
if (sq->sqe_head != tail) {