summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-03-15 17:44:04 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2024-03-15 17:45:04 +0100
commitbb54f5f4e7afee2f2abdc4b9fe9cc45dc91288f3 (patch)
treec174896c642b79c69ca8865cb915ae58bf13ffbb /test
parent22a5c2565d945abd47884822a82fe635dfac5ed9 (diff)
riscv64: fix compiler warning
Diffstat (limited to 'test')
-rw-r--r--test/tls/tls-macros-riscv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/tls/tls-macros-riscv.h b/test/tls/tls-macros-riscv.h
index eddcfc0..b780b4f 100644
--- a/test/tls/tls-macros-riscv.h
+++ b/test/tls/tls-macros-riscv.h
@@ -17,6 +17,7 @@
#define TLS_GD(x) \
({ void *__result; \
+ extern void *__tls_get_addr (void *); \
asm ("la.tls.gd %0, " #x "\n\t" \
: "=r" (__result)); \
__tls_get_addr (__result); })