diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2023-04-07 00:54:47 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-06-09 21:46:07 +0300 |
commit | 7f291cfa90d7f95da11fe9aa7062344ddfce603a (patch) | |
tree | 149cb2327501796b46438fe16a355b03a841f543 /tools/include | |
parent | 3a8039e289a337aeaa9ad37f3fcd411d83fee983 (diff) | |
download | linux-7f291cfa90d7f95da11fe9aa7062344ddfce603a.tar.xz |
tools/nolibc: use standard __asm__ statements
Most of the code was migrated to C99-conformant __asm__ statements
before. It seems string.h was missed.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/include')
-rw-r--r-- | tools/include/nolibc/string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/include/nolibc/string.h b/tools/include/nolibc/string.h index fffdaf6ff467..0c2e06c7c477 100644 --- a/tools/include/nolibc/string.h +++ b/tools/include/nolibc/string.h @@ -90,7 +90,7 @@ void *memset(void *dst, int b, size_t len) while (len--) { /* prevent gcc from recognizing memset() here */ - asm volatile(""); + __asm__ volatile(""); *(p++) = b; } return dst; @@ -139,7 +139,7 @@ size_t strlen(const char *str) size_t len; for (len = 0; str[len]; len++) - asm(""); + __asm__(""); return len; } |