summaryrefslogtreecommitdiff
path: root/lib/libc/include/bits
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-23 22:26:38 -0400
committerIan Moffett <ian@osmora.org>2024-04-23 22:26:38 -0400
commitee7d9a7237794b4b8b67a19a244ffb3bf69d34e4 (patch)
tree5cc657303c68f3df01c8adb95bd7d46bd144a039 /lib/libc/include/bits
parentc28dc314599caaa43779e52dba135734e2d597ee (diff)
libc: bits: Fix __test_and_set definition
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/libc/include/bits')
-rw-r--r--lib/libc/include/bits/_lock.h2
1 files changed, 1 insertions, 1 deletions
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;