This is an automated email from the ASF dual-hosted git repository.
pkarashchenko 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 13dfe41f6c Fix include/nuttx/hwspinlock/hwspinlock.h:117:3: error: too
few arguments to function 'hwspin_unlock'
13dfe41f6c is described below
commit 13dfe41f6c4cd09b5d4b8e2caea5f4a9e1526e71
Author: Xiang Xiao <[email protected]>
AuthorDate: Tue Jul 25 05:13:01 2023 -0700
Fix include/nuttx/hwspinlock/hwspinlock.h:117:3: error: too few arguments
to function 'hwspin_unlock'
Signed-off-by: Xiang Xiao <[email protected]>
---
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 b5b762f90b..0cef4f4cc5 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);