You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[raiden00:~/git/RTOS/nuttx/nuttx]$ make -j
Create version.h
LN: platform/board to /home/raiden00/git/RTOS/nuttx/apps/platform/dummy
Register: hello
Register: taskset
Register: getprime
Register: ostest
Register: nsh
Register: smp
Register: sh
CP: /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/config.h
CP: /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/fs/hostfs.h
machine/arch_atomic.c: In function ‘__atomic_fetch_add_2’:
machine/arch_atomic.c:120:22: warning: infinite recursion detected [-Winfinite-recursion]
120 | type weak_function __atomic_fetch_add_##n (FAR volatile void *ptr, \
| ^~~~~~~~~~~~~~~~~~~
machine/arch_atomic.c:450:1: note: in expansion of macro ‘FETCH_ADD’
450 | FETCH_ADD(2, uint16_t)
| ^~~~~~~~~
In file included from /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/atomic.h:84,
from /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/fs/fs.h:40,
from /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/sched.h:47,
from /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/arch.h:89,
from /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/spinlock.h:38,
from machine/arch_atomic.c:31:
In function ‘spin_lock_wo_note’,
inlined from ‘spin_lock_irqsave_wo_note’ at /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/spinlock.h:531:7,
inlined from ‘spin_lock_irqsave’ at /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/spinlock.h:586:11,
inlined from ‘__atomic_fetch_add_2’ at machine/arch_atomic.c:450:1:
/home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/spinlock.h:243:5: note: recursive call
243 | atomic_fetch_add((FAR atomic_ushort *)&lock->tickets.next, 1);
| ^~~~~~~~~~~~~~~~
In function ‘spin_lock_wo_note’,
inlined from ‘spin_lock_irqsave_wo_note’ at /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/spinlock.h:535:7,
inlined from ‘spin_lock_irqsave’ at /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/spinlock.h:586:11,
inlined from ‘__atomic_fetch_add_2’ at machine/arch_atomic.c:450:1:
/home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/spinlock.h:243:5: note: recursive call
243 | atomic_fetch_add((FAR atomic_ushort *)&lock->tickets.next, 1);
| ^~~~~~~~~~~~~~~~
machine/arch_atomic.c: In function ‘__atomic_load_2’:
machine/arch_atomic.c:51:22: warning: infinite recursion detected [-Winfinite-recursion]
51 | type weak_function __atomic_load_##n (FAR const volatile void *ptr, \
| ^~~~~~~~~~~~~~
machine/arch_atomic.c:354:1: note: in expansion of macro ‘LOAD’
354 | LOAD(2, uint16_t)
| ^~~~
In function ‘spin_lock_wo_note’,
inlined from ‘spin_lock_irqsave_wo_note’ at /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/spinlock.h:531:7,
inlined from ‘spin_lock_irqsave’ at /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/spinlock.h:586:11,
inlined from ‘__atomic_load_2’ at machine/arch_atomic.c:354:1:
/home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/spinlock.h:244:10: note: recursive call
244 | while (atomic_load((FAR atomic_ushort *)&lock->tickets.owner) != ticket)
| ^~~~~~~~~~~
In function ‘spin_lock_wo_note’,
inlined from ‘spin_lock_irqsave_wo_note’ at /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/spinlock.h:535:7,
inlined from ‘spin_lock_irqsave’ at /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/spinlock.h:586:11,
inlined from ‘__atomic_load_2’ at machine/arch_atomic.c:354:1:
/home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/spinlock.h:244:10: note: recursive call
244 | while (atomic_load((FAR atomic_ushort *)&lock->tickets.owner) != ticket)
| ^~~~~~~~~~~
LD: nuttx
On which OS does this issue occur?
[OS: Linux]
What is the version of your OS?
Arch Linux
NuttX Version
master
Issue Architecture
[Arch: simulator]
Issue Area
[Area: Kernel]
Verification
I have verified before submitting the report.
The text was updated successfully, but these errors were encountered:
I found that this problem should be introduced in 5aa13bc
, so should we revert it first and then think about whether there is any way to improve the original PR to avoid affecting other people's work?
Description / Steps to reproduce the issue
New warnings when building
sim/smp
build with: gcc (GCC) 14.1.1 20240522
On which OS does this issue occur?
[OS: Linux]
What is the version of your OS?
Arch Linux
NuttX Version
master
Issue Architecture
[Arch: simulator]
Issue Area
[Area: Kernel]
Verification
The text was updated successfully, but these errors were encountered: