Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

list: Remove duplicated and unused macro list_for_each_reverse

Remove macro list_for_each_reverse due to below reasons:

- it is same as list_for_each_prev.
- it is not used by current kernel tree.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/20240917-fix_list-v2-1-d2914665e89f@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Zijun Hu and committed by
Greg Kroah-Hartman
cec78a59 dbd45eef

-8
-8
include/linux/list.h
··· 687 687 for (pos = (head)->next; !list_is_head(pos, (head)); pos = pos->next) 688 688 689 689 /** 690 - * list_for_each_reverse - iterate backwards over a list 691 - * @pos: the &struct list_head to use as a loop cursor. 692 - * @head: the head for your list. 693 - */ 694 - #define list_for_each_reverse(pos, head) \ 695 - for (pos = (head)->prev; pos != (head); pos = pos->prev) 696 - 697 - /** 698 690 * list_for_each_rcu - Iterate over a list in an RCU-safe fashion 699 691 * @pos: the &struct list_head to use as a loop cursor. 700 692 * @head: the head for your list.