freedreno: Fixes error: passing argument 1 of ‘pthread_mutex_unlock’ from incompatibl...
authorYonggang Luo <luoyonggang@gmail.com>
Mon, 13 Feb 2023 08:43:39 +0000 (16:43 +0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 20 Jun 2023 00:05:48 +0000 (00:05 +0000)
commit2e4f874fa5bcb68d4520cba8e87e8f420085ff11
treecdf3ba02f8a194fe6f9b4a24dac3f8dd0f695304
parent1f3869ed4e44907ca925d52ffce662a483822706
freedreno: Fixes error: passing argument 1 of ‘pthread_mutex_unlock’ from incompatible pointer type in tu_pipeline.c

src/freedreno/vulkan/tu_pipeline.c:4723:25: error: passing argument 1 of ‘pthread_mutex_unlock’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 4723 |    pthread_mutex_unlock(&dev->pipeline_mutex);
      |                         ^~~~~~~~~~~~~~~~~~~~
      |                         |
      |                         mtx_t *
In file included from ../../src/freedreno/vulkan/tu_common.h:14,
                 from ../../src/freedreno/vulkan/tu_pipeline.h:13,
                 from ../../src/freedreno/vulkan/tu_pipeline.c:10:
/usr/include/pthread.h:835:51: note: expected ‘pthread_mutex_t *’ but argument is of type ‘mtx_t *’
  835 | extern int pthread_mutex_unlock (pthread_mutex_t *__mutex)

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Acked-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23733>
src/freedreno/vulkan/tu_pipeline.cc