From f97c4fe5571b55c9643f358c7d5d00f1c2899ad3 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 25 Jul 2023 05:13:01 -0700 Subject: [PATCH] Fix include/nuttx/hwspinlock/hwspinlock.h:117:3: error: too few arguments to function 'hwspin_unlock' Signed-off-by: Xiang Xiao --- include/nuttx/hwspinlock/hwspinlock.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/nuttx/hwspinlock/hwspinlock.h b/include/nuttx/hwspinlock/hwspinlock.h index b5b762f90b124..0cef4f4cc5f13 100644 --- a/include/nuttx/hwspinlock/hwspinlock.h +++ b/include/nuttx/hwspinlock/hwspinlock.h @@ -104,15 +104,13 @@ hwspin_lock_irqsave(FAR struct hwspinlock_dev_s *dev, return flags; } -static inline void hwspin_unlock(FAR struct hwspinlock_dev_s *dev, - int id, int priority) +static inline void hwspin_unlock(FAR struct hwspinlock_dev_s *dev, int id) { dev->ops->unlock(dev, id); } static inline void hwspin_unlock_restore(FAR struct hwspinlock_dev_s *dev, - int id, int priority, - irqstate_t flags) + int id, irqstate_t flags) { hwspin_unlock(dev, id); spin_lock_restore(&dev->lock, flags);