diff options
author | 2022-03-29 17:17:30 +0700 | |
---|---|---|
committer | 2022-04-20 17:05:46 -0700 | |
commit | 37d62758e773939636b8fa64a1a39a8a0d3a9f8c (patch) | |
tree | e4a0cb48b18e6bd06667ab9c708fe3d02f830a3a /lib/test_bitmap.c | |
parent | tools/nolibc: x86-64: Update System V ABI document link (diff) | |
download | linux-dev-37d62758e773939636b8fa64a1a39a8a0d3a9f8c.tar.xz linux-dev-37d62758e773939636b8fa64a1a39a8a0d3a9f8c.zip |
tools/nolibc: Replace `asm` with `__asm__`
Replace `asm` with `__asm__` to support compilation with -std flag.
Using `asm` with -std flag makes GCC think `asm()` is a function call
instead of an inline assembly.
GCC doc says:
For the C language, the `asm` keyword is a GNU extension. When
writing C code that can be compiled with `-ansi` and the `-std`
options that select C dialects without GNU extensions, use
`__asm__` instead of `asm`.
Link: https://gcc.gnu.org/onlinedocs/gcc/Basic-Asm.html
Reported-by: Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org>
Acked-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions