Browse Source

riscv64: fix compiler warning

Waldemar Brodkorb 1 month ago
parent
commit
bb54f5f4e7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      test/tls/tls-macros-riscv.h

+ 1 - 0
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); })