From: Mike Snitzer <snitzer@xxxxxxxxxx> Reviewed-by: Ken Raeburn <raeburn@xxxxxxxxxx> Signed-off-by: Mike Snitzer <snitzer@xxxxxxxxxx> Signed-off-by: Matthew Sakai <msakai@xxxxxxxxxx> --- drivers/md/dm-vdo/wait-queue.c | 18 ------------------ drivers/md/dm-vdo/wait-queue.h | 3 --- 2 files changed, 21 deletions(-) diff --git a/drivers/md/dm-vdo/wait-queue.c b/drivers/md/dm-vdo/wait-queue.c index 9c12a9893823..4231d3243fa1 100644 --- a/drivers/md/dm-vdo/wait-queue.c +++ b/drivers/md/dm-vdo/wait-queue.c @@ -207,21 +207,3 @@ bool vdo_waitq_notify_next_waiter(struct vdo_wait_queue *waitq, return true; } - -/** - * vdo_waitq_get_next_waiter() - Get the waiter after this one, for debug iteration. - * @waitq: The vdo_wait_queue. - * @waiter: A waiter. - * - * Return: The next waiter, or NULL. - */ -const struct vdo_waiter *vdo_waitq_get_next_waiter(const struct vdo_wait_queue *waitq, - const struct vdo_waiter *waiter) -{ - struct vdo_waiter *first_waiter = vdo_waitq_get_first_waiter(waitq); - - if (waiter == NULL) - return first_waiter; - - return ((waiter->next_waiter != first_waiter) ? waiter->next_waiter : NULL); -} diff --git a/drivers/md/dm-vdo/wait-queue.h b/drivers/md/dm-vdo/wait-queue.h index b92f12dd5b4b..e514bdcf7d32 100644 --- a/drivers/md/dm-vdo/wait-queue.h +++ b/drivers/md/dm-vdo/wait-queue.h @@ -135,7 +135,4 @@ static inline size_t __must_check vdo_waitq_num_waiters(const struct vdo_wait_qu return waitq->length; } -const struct vdo_waiter * __must_check -vdo_waitq_get_next_waiter(const struct vdo_wait_queue *waitq, const struct vdo_waiter *waiter); - #endif /* VDO_WAIT_QUEUE_H */ -- 2.42.0