Mesa (master): util: remove LIST_REPLACE macro
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Oct 28 12:20:36 UTC 2019
Module: Mesa
Branch: master
Commit: d23d47c065502e6daaa1074f4e6457120dfa152b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d23d47c065502e6daaa1074f4e6457120dfa152b
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Mon Oct 28 10:05:45 2019 +1100
util: remove LIST_REPLACE macro
Just use the inlined function directly. The macro was replaced with
the function in ebe304fa540f.
Reviewed-by: Eric Engestrom <eric at engestrom.ch>
---
src/gallium/auxiliary/util/u_debug_memory.c | 2 +-
src/util/list.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_debug_memory.c b/src/gallium/auxiliary/util/u_debug_memory.c
index 7f0ac026c8c..70f51144fa9 100644
--- a/src/gallium/auxiliary/util/u_debug_memory.c
+++ b/src/gallium/auxiliary/util/u_debug_memory.c
@@ -275,7 +275,7 @@ debug_realloc(const char *file, unsigned line, const char *function,
new_ftr->magic = DEBUG_MEMORY_MAGIC;
mtx_lock(&list_mutex);
- LIST_REPLACE(&old_hdr->head, &new_hdr->head);
+ list_replace(&old_hdr->head, &new_hdr->head);
mtx_unlock(&list_mutex);
/* copy data */
diff --git a/src/util/list.h b/src/util/list.h
index cb66ae37be6..ada844b9eba 100644
--- a/src/util/list.h
+++ b/src/util/list.h
@@ -158,7 +158,6 @@ static inline void list_validate(const struct list_head *list)
assert(node->next->prev == node && node->prev->next == node);
}
-#define LIST_REPLACE(__from, __to) list_replace(__from, __to)
#define LIST_DEL(__item) list_del(__item)
#define LIST_DELINIT(__item) list_delinit(__item)
More information about the mesa-commit
mailing list