From 95d8b4ac0bbef31aa99e21ee6ce18eb09c05d934 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 31 May 2019 14:35:08 +0200 Subject: etnaviv: drm: s/bo_del/_etna_bo_del/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids a conflict with freedreno's bo_del(). Signed-off-by: Guido Günther Reviewed-by: Christian Gmeiner --- src/etnaviv/drm/etnaviv_bo.c | 6 +++--- src/etnaviv/drm/etnaviv_bo_cache.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/etnaviv') diff --git a/src/etnaviv/drm/etnaviv_bo.c b/src/etnaviv/drm/etnaviv_bo.c index 6d6339aff49..6e952fa4785 100644 --- a/src/etnaviv/drm/etnaviv_bo.c +++ b/src/etnaviv/drm/etnaviv_bo.c @@ -31,7 +31,7 @@ #include "etnaviv_drmif.h" pthread_mutex_t etna_drm_table_lock = PTHREAD_MUTEX_INITIALIZER; -void bo_del(struct etna_bo *bo); +void _etna_bo_del(struct etna_bo *bo); /* set buffer name, and add to table, call w/ etna_drm_table_lock held: */ static void set_name(struct etna_bo *bo, uint32_t name) @@ -42,7 +42,7 @@ static void set_name(struct etna_bo *bo, uint32_t name) } /* Called under etna_drm_table_lock */ -void bo_del(struct etna_bo *bo) +void _etna_bo_del(struct etna_bo *bo) { if (bo->map) os_munmap(bo->map, bo->size); @@ -251,7 +251,7 @@ void etna_bo_del(struct etna_bo *bo) if (bo->reuse && (etna_bo_cache_free(&dev->bo_cache, bo) == 0)) goto out; - bo_del(bo); + _etna_bo_del(bo); etna_device_del_locked(dev); out: pthread_mutex_unlock(&etna_drm_table_lock); diff --git a/src/etnaviv/drm/etnaviv_bo_cache.c b/src/etnaviv/drm/etnaviv_bo_cache.c index 116013cb2f1..918d00d4e1d 100644 --- a/src/etnaviv/drm/etnaviv_bo_cache.c +++ b/src/etnaviv/drm/etnaviv_bo_cache.c @@ -27,7 +27,7 @@ #include "etnaviv_priv.h" #include "etnaviv_drmif.h" -void bo_del(struct etna_bo *bo); +void _etna_bo_del(struct etna_bo *bo); extern pthread_mutex_t etna_drm_table_lock; static void add_bucket(struct etna_bo_cache *cache, int size) @@ -86,7 +86,7 @@ void etna_bo_cache_cleanup(struct etna_bo_cache *cache, time_t time) break; list_del(&bo->list); - bo_del(bo); + _etna_bo_del(bo); } } -- cgit v1.2.3