Skip to content

Commit 21cd524

Browse files
committed
[Kernel] Fix the SPINLOCK definitions issue.
1 parent 4127cc1 commit 21cd524

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/rthw.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,10 @@ extern rt_hw_spinlock_t _rt_critical_lock;
153153

154154
#define __RT_HW_SPIN_LOCK_INITIALIZER(lockname) {0}
155155

156-
#define __RT_HW_SPIN_LOCK_UNLOCKED(lockname) \
157-
(struct rt_hw_spinlock ) __RT_HW_SPIN_LOCK_INITIALIZER(lockname)
156+
#define __RT_HW_SPIN_LOCK_UNLOCKED(lockname) \
157+
(rt_hw_spinlock_t) __RT_HW_SPIN_LOCK_INITIALIZER(lockname)
158158

159-
#define RT_DEFINE_SPINLOCK(x) struct rt_hw_spinlock x = __RT_HW_SPIN_LOCK_UNLOCKED(x)
159+
#define RT_DEFINE_SPINLOCK(x) rt_hw_spinlock_t x = __RT_HW_SPIN_LOCK_UNLOCKED(x)
160160

161161
/**
162162
* ipi function

0 commit comments

Comments
 (0)