hujun260 opened a new pull request, #12735:
URL: https://github.com/apache/nuttx/pull/12735

   
   ## Summary
   error msg
   /home/hujun5/downloads1/vela_sim/nuttx/include/nuttx/spinlock.h: In function 
'bool spin_trylock_wo_note(volatile spinlock_t*)': 
/home/hujun5/downloads1/vela_sim/nuttx/include/nuttx/spinlock.h:401:22: error: 
'atomic_ushort' was not declared in this scope; did you mean 
'std::__1::atomic_ushort'?
     401 |     atomic_load((FAR atomic_ushort *)&lock->tickets.next);
         |                      ^~~~~~~~~~~~~
         |                      std::__1::atomic_ushort
   
/home/hujun5/downloads1/vela_sim/nuttx/include/libcxx/__atomic/aliases.h:33:7: 
note: 'std::__1::atomic_ushort' declared here
      33 | using atomic_ushort = atomic<unsigned short>;
         |       ^~~~~~~~~~~~~
   /home/hujun5/downloads1/vela_sim/nuttx/include/nuttx/spinlock.h:401:37: 
error: expected primary-expression before ')' token
     401 |     atomic_load((FAR atomic_ushort *)&lock->tickets.next);
         |                                     ^
   /home/hujun5/downloads1/vela_sim/nuttx/include/nuttx/spinlock.h:410:14: 
error: expected unqualified-id before 'new'
     410 |   spinlock_t new =
         |              ^~~
   /home/hujun5/downloads1/vela_sim/nuttx/include/nuttx/spinlock.h:417:44: 
error: 'atomic_uint' was not declared in this scope; did you mean 
'std::__1::atomic_uint'?
     417 |   if (!atomic_compare_exchange_strong((FAR atomic_uint 
*)&lock->value,
         |                                            ^~~~~~~~~~~
         |                                            std::__1::atomic_uint
   
/home/hujun5/downloads1/vela_sim/nuttx/include/libcxx/__atomic/aliases.h:35:7: 
note: 'std::__1::atomic_uint' declared here
      35 | using atomic_uint   = atomic<unsigned int>;
         |       ^~~~~~~~~~~
   /home/hujun5/downloads1/vela_sim/nuttx/include/nuttx/spinlock.h:417:57: 
error: expected primary-expression before ')' token
     417 |   if (!atomic_compare_exchange_strong((FAR atomic_uint 
*)&lock->value,
         |                                                         ^
   /home/hujun5/downloads1/vela_sim/nuttx/include/nuttx/spinlock.h:418:54: 
error: expected type-specifier before '.' token
     418 |                                       &old.value, new.value))
   
   
   ## Impact
   
   ## Testing
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to