nuttx/arch
chenrun1 ab4d72756e arch/samd2l2:Ignore atomic warning when using clang compiler
When the toolchain does not support atomic, it will use the version implemented by NuttX (low performance version). This scenario is consistent with the original design, so we can ignore it.

see bug here:
https://bugs.llvm.org/show_bug.cgi?id=43603

Error: inode/fs_inodeaddref.c:50:7: error: large atomic operation may incur significant performance penalty; the access size (4 bytes) exceeds the max lock-free size (0  bytes) [-Werror,-Watomic-alignment]
   50 |       atomic_fetch_add(&inode->i_crefs, 1);
      |       ^
/tools/clang-arm-none-eabi/lib/clang/17/include/stdatomic.h:152:43: note: expanded from macro 'atomic_fetch_add'
  152 | #define atomic_fetch_add(object, operand) __c11_atomic_fetch_add(object, operand, __ATOMIC_SEQ_CST)
      |                                           ^
1 error generated.
make[1]: *** [Makefile:83: fs_inodeaddref.o] Error 1
Error: inode/fs_inodefind.c:74:7: error: large atomic operation may incur significant performance penalty; the access size (4 bytes) exceeds the max lock-free size (0  bytes) [-Werror,-Watomic-alignment]
   74 |       atomic_fetch_add(&node->i_crefs, 1);

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-09-23 14:07:03 +08:00
..
arm arch/samd2l2:Ignore atomic warning when using clang compiler 2024-09-23 14:07:03 +08:00
arm64 arm64_task/pthread_start: Convert the C / inline ASM code to assembly 2024-09-21 23:24:02 +08:00
avr
ceva
dummy
hc
mips
misoc
or1k
renesas
risc-v riscv: add a return value to riscv_swint indicating whether a context switch is required 2024-09-22 09:38:26 -03:00
sim mm/kasan: Kasan global support setting alignment length 2024-09-20 21:47:23 +08:00
sparc
tricore
x86
x86_64
xtensa esp32s3: Fix faulty esp32s3-devkit:stack example 2024-09-21 10:42:06 +08:00
z16
z80
CMakeLists.txt
Kconfig