Mesa (master): panfrost: Don't use implicit mali_exception_status enum

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jan 24 19:15:47 UTC 2020


Module: Mesa
Branch: master
Commit: d126515a16d268ec5aae5daf116df53cdc47fb88
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d126515a16d268ec5aae5daf116df53cdc47fb88

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Thu Jan 23 15:28:09 2020 -0500

panfrost: Don't use implicit mali_exception_status enum

Fixes ../src/panfrost/pandecode/public.h:53:33: warning: ‘enum mali_exception_access’ declared inside parameter list will not be visible outside of this definition or declaration

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3543>

---

 src/panfrost/pandecode/decode.c | 2 +-
 src/panfrost/pandecode/public.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c
index 2750f206759..c28b13f2efa 100644
--- a/src/panfrost/pandecode/decode.c
+++ b/src/panfrost/pandecode/decode.c
@@ -480,7 +480,7 @@ pandecode_block_format(enum mali_block_format fmt)
 
 #define DEFINE_CASE(name) case MALI_EXCEPTION_ACCESS_## name: return ""#name
 char *
-pandecode_exception_access(enum mali_exception_access access)
+pandecode_exception_access(unsigned access)
 {
         switch (access) {
                 DEFINE_CASE(NONE);
diff --git a/src/panfrost/pandecode/public.h b/src/panfrost/pandecode/public.h
index 7d684347c46..9144ea1b60d 100644
--- a/src/panfrost/pandecode/public.h
+++ b/src/panfrost/pandecode/public.h
@@ -54,7 +54,7 @@ pandecode_inject_mmap(uint64_t gpu_va, void *cpu, unsigned sz, const char *name)
 int pandecode_jc(uint64_t jc_gpu_va, bool bifrost, unsigned gpu_id);
 
 char *
-pandecode_exception_access(enum mali_exception_access access);
+pandecode_exception_access(unsigned access);
 
 
 #endif /* __MMAP_TRACE_H__ */



More information about the mesa-commit mailing list