util/list: rename LIST_ENTRY() to list_entry()

This follows the Linux kernel convention, and avoids collision with
macOS header macro.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6751
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6840
Cc: mesa-stable
Signed-off-by: Eric Engestrom <eric@igalia.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17772>
This commit is contained in:
Eric Engestrom
2022-07-27 16:48:11 +01:00
committed by Marge Bot
parent a9ebf55d02
commit 2c67457e5e
39 changed files with 126 additions and 124 deletions
+2 -2
View File
@@ -310,7 +310,7 @@ debug_memory_end(unsigned long start_no)
void *ptr;
struct debug_memory_footer *ftr;
hdr = LIST_ENTRY(struct debug_memory_header, entry, head);
hdr = list_entry(entry, struct debug_memory_header, head);
ptr = data_from_header(hdr);
ftr = footer_from_header(hdr);
@@ -417,7 +417,7 @@ debug_memory_check(void)
struct debug_memory_footer *ftr;
const char *ptr;
hdr = LIST_ENTRY(struct debug_memory_header, entry, head);
hdr = list_entry(entry, struct debug_memory_header, head);
ftr = footer_from_header(hdr);
ptr = (const char *) data_from_header(hdr);