From bb54f5f4e7afee2f2abdc4b9fe9cc45dc91288f3 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 15 Mar 2024 17:44:04 +0100 Subject: riscv64: fix compiler warning --- test/tls/tls-macros-riscv.h | 1 + 1 file changed, 1 insertion(+) 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); }) -- cgit v1.2.3