Mesa (master): amd: Fix declaration mismatch

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Nov 28 05:32:03 UTC 2020


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

Author: James Park <jpark37 at lagfreegames.com>
Date:   Thu Nov 26 20:44:50 2020 -0800

amd: Fix declaration mismatch

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7791>

---

 src/amd/llvm/ac_llvm_util.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/amd/llvm/ac_llvm_util.h b/src/amd/llvm/ac_llvm_util.h
index 4b1754ea3b8..149478d60f7 100644
--- a/src/amd/llvm/ac_llvm_util.h
+++ b/src/amd/llvm/ac_llvm_util.h
@@ -27,6 +27,7 @@
 #define AC_LLVM_UTIL_H
 
 #include "amd_family.h"
+#include "util/macros.h"
 #include <llvm-c/TargetMachine.h>
 #include <llvm/Config/llvm-config.h>
 
@@ -128,7 +129,7 @@ unsigned ac_count_scratch_private_memory(LLVMValueRef function);
 
 LLVMTargetLibraryInfoRef ac_create_target_library_info(const char *triple);
 void ac_dispose_target_library_info(LLVMTargetLibraryInfoRef library_info);
-void ac_init_shared_llvm_once(void); /* Do not use directly, use ac_init_llvm_once */
+PUBLIC void ac_init_shared_llvm_once(void); /* Do not use directly, use ac_init_llvm_once */
 void ac_init_llvm_once(void);
 
 bool ac_init_llvm_compiler(struct ac_llvm_compiler *compiler, enum radeon_family family,



More information about the mesa-commit mailing list