This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 840ae60b60 nuttx/spinlock: Define empty macro for spin_unlock 840ae60b60 is described below commit 840ae60b6005e299b2c3d26e77e896e38c8e52be Author: Ville Juven <ville.ju...@unikie.com> AuthorDate: Thu May 15 13:42:04 2025 +0300 nuttx/spinlock: Define empty macro for spin_unlock So that the same code can be used with and without spinlocks. Signed-off-by: Ville Juven <ville.ju...@unikie.com> Signed-off-by: Jukka Laitinen <jukka.laiti...@tii.ae> --- include/nuttx/spinlock.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/nuttx/spinlock.h b/include/nuttx/spinlock.h index 7d9608d26c..c1013e6401 100644 --- a/include/nuttx/spinlock.h +++ b/include/nuttx/spinlock.h @@ -448,6 +448,8 @@ static inline_function void spin_unlock(FAR volatile spinlock_t *lock) # else # define spin_unlock(l) do { *(l) = SP_UNLOCKED; } while (0) # endif +#else +# define spin_unlock(lock) #endif /* CONFIG_SPINLOCK */ /****************************************************************************