summaryrefslogtreecommitdiff
path: root/drivers/hwmon/nct7802.c
diff options
context:
space:
mode:
authorAmmar Faizi <ammarfaizi2@gnuweeb.org>2022-03-29 13:17:30 +0300
committerPaul E. McKenney <paulmck@kernel.org>2022-04-21 03:05:46 +0300
commit37d62758e773939636b8fa64a1a39a8a0d3a9f8c (patch)
treee4a0cb48b18e6bd06667ab9c708fe3d02f830a3a /drivers/hwmon/nct7802.c
parent5312aaa5d567f0dfc11681ad991a78e9da43fe7b (diff)
downloadlinux-37d62758e773939636b8fa64a1a39a8a0d3a9f8c.tar.xz
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 'drivers/hwmon/nct7802.c')
0 files changed, 0 insertions, 0 deletions