From ee7d9a7237794b4b8b67a19a244ffb3bf69d34e4 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 23 Apr 2024 22:26:38 -0400 Subject: libc: bits: Fix __test_and_set definition Signed-off-by: Ian Moffett --- lib/libc/include/bits/_lock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/include/bits') diff --git a/lib/libc/include/bits/_lock.h b/lib/libc/include/bits/_lock.h index 4cfec0b..633ac31 100644 --- a/lib/libc/include/bits/_lock.h +++ b/lib/libc/include/bits/_lock.h @@ -37,7 +37,7 @@ typedef struct { } __libc_spinlock_t; #if defined(__x86_64__) -__attribute__((__always_inline__, __weak__)) inline int +__attribute__((__always_inline__)) inline int __test_and_set(__libc_spinlock_t *lock) { int tmp = 0; -- cgit v1.2.3