summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-05-09 08:38:42 +0800
committerBernard Xiong <[email protected]>2019-05-09 08:48:38 +0800
commit21cd524bdba6a8825a5d95ad952985fdef7c1841 (patch)
tree5f04f99501404537e3b7cd75078627a01ea3d978 /include
parent4127cc13bfb11ccc2371bf59700138c113d12271 (diff)
[Kernel] Fix the SPINLOCK definitions issue.
Diffstat (limited to 'include')
-rw-r--r--include/rthw.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/rthw.h b/include/rthw.h
index dee10b0bee..fc9cb3cd16 100644
--- a/include/rthw.h
+++ b/include/rthw.h
@@ -153,10 +153,10 @@ extern rt_hw_spinlock_t _rt_critical_lock;
#define __RT_HW_SPIN_LOCK_INITIALIZER(lockname) {0}
-#define __RT_HW_SPIN_LOCK_UNLOCKED(lockname) \
- (struct rt_hw_spinlock ) __RT_HW_SPIN_LOCK_INITIALIZER(lockname)
+#define __RT_HW_SPIN_LOCK_UNLOCKED(lockname) \
+ (rt_hw_spinlock_t) __RT_HW_SPIN_LOCK_INITIALIZER(lockname)
-#define RT_DEFINE_SPINLOCK(x) struct rt_hw_spinlock x = __RT_HW_SPIN_LOCK_UNLOCKED(x)
+#define RT_DEFINE_SPINLOCK(x) rt_hw_spinlock_t x = __RT_HW_SPIN_LOCK_UNLOCKED(x)
/**
* ipi function