panfrost: Don't use implicit mali_exception_status enum
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 23 Jan 2020 20:28:09 +0000 (15:28 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jan 2020 18:53:31 +0000 (18:53 +0000)
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@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3543>

src/panfrost/pandecode/decode.c
src/panfrost/pandecode/public.h

index 2750f2067595b36000b63eb027d2dc7d7aa07e89..c28b13f2efa257c864b3854d60095067592cf7e1 100644 (file)
@@ -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);
index 7d684347c46e95a5bad28c4bc68a3e4a0928cbb6..9144ea1b60d3b38a086b38ebb9d6659c7d38edab 100644 (file)
@@ -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__ */