The reason why list_for_each_entry() is being redefined here is because unlike the Linux version, FreeBSD's list_for_each_entry() does not use locks.
This is needed by the drm-kmod 5.7 update.
Differential D30708
linuxkpi: Add list_for_each_entry_lockless() macro nc on Jun 9 2021, 6:21 PM. Authored by Tags None Referenced Files
Details The reason why list_for_each_entry() is being redefined here is because unlike the Linux version, FreeBSD's list_for_each_entry() does not use locks. This is needed by the drm-kmod 5.7 update.
Diff Detail
Event TimelineComment Actions If it's the same as list_for_each_entry you should explain why in the commit message. Comment Actions I believe linuxkpi's list_for_each_entry is lockless (but am not sure), so I updated the message. Comment Actions Please use function macro. #define list_for_each_entry_lockless(...) list_for_each_entry(__VA_ARGS__) --HPS |