list: Remove duplicated and unused macro list_for_each_reverse
PATCH v2 1/1 list: Remove duplicated and unused macro list_for_each_reverse
From: Zijun Hu <[email protected]>
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 <[email protected]>
---
Changes in v2:
- Remove both Fixes and Cc tags
- Link to v1: https://lore.kernel.org/r/[email protected]
--- include/linux/list.h | 8 -------- 1 file changed, 8 deletions(-)
include/linux/list.h +0 -8
@@ -686,14 +686,6 @@ static inline void list_splice_tail_init(struct list_head *list,#define list_for_each (pos, head) \ for (pos = (head)->next; !list_is_head(pos, (head)); pos = pos->next) -/** -* list_for_each_reverse - iterate backwards over a list -* @pos: the &struct list_head to use as a loop cursor. -* @head: the head for your list. -*/ -#define list_for_each_reverse (pos, head) \ - for (pos = (head)->prev; pos != (head); pos = pos->prev) -/** * list_for_each_rcu - Iterate over a list in an RCU-safe fashion * @pos: the &struct list_head to use as a loop cursor.
---
base-commit: 6a36d828bdef0e02b1e6c12e2160f5b83be6aab5
change-id: 20240916-fix_list-553c447bde0f
Best regards,
Signature · 1 line
Zijun Hu <[email protected]>