mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 00:11:07 -05:00
Add list_for_each_prev to our linux compatibility.
We need this for nouveau MFC after: 3 days
This commit is contained in:
parent
a4501e547e
commit
41a7f04fda
1 changed files with 4 additions and 0 deletions
|
|
@ -67,6 +67,10 @@ list_del(struct list_head *entry) {
|
|||
#define list_for_each(entry, head) \
|
||||
for (entry = (head)->next; entry != head; entry = (entry)->next)
|
||||
|
||||
#define list_for_each_prev(entry, head) \
|
||||
for (entry = (head)->prev; entry != (head); \
|
||||
entry = entry->prev)
|
||||
|
||||
#define list_for_each_safe(entry, temp, head) \
|
||||
for (entry = (head)->next, temp = (entry)->next; \
|
||||
entry != head; \
|
||||
|
|
|
|||
Loading…
Reference in a new issue