https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103964
Florian Weimer <fw at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fw at gcc dot gnu.org --- Comment #1 from Florian Weimer <fw at gcc dot gnu.org> --- The kernel version of the macro is called list_for_each_entry. There's a Stackoverflow question about this issue: Does Linux kernel list implementation cause UB? https://stackoverflow.com/questions/64859526/does-linux-kernel-list-implementation-cause-ub