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:
committed by
Marge Bot
parent
a9ebf55d02
commit
2c67457e5e
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user