Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Linux-Kernel
linux-evl
Commits
7141c7b5
Commit
7141c7b5
authored
Jan 02, 2021
by
Philippe Gerum
Browse files
evl/lock: fix assorted macro syntax breakages
Signed-off-by:
Philippe Gerum
<
rpm@xenomai.org
>
parent
f854eeb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/evl/lock.h
View file @
7141c7b5
...
...
@@ -96,13 +96,13 @@ typedef struct evl_spinlock {
#define _evl_spin_lock(__lock) \
do { \
_evl_spin_lock_check(); \
__evl_spin_lock(
&(
__lock)
->_lock)
; \
__evl_spin_lock(__lock);
\
} while (0)
#define _evl_spin_lock_nested(__lock, __subclass)
\
do {
\
_evl_spin_lock_check();
\
__evl_spin_lock_nested(
&(__lock)->
_lock, __subclass); \
#define _evl_spin_lock_nested(__lock, __subclass) \
do { \
_evl_spin_lock_check(); \
__evl_spin_lock_nested(
_
_lock, __subclass); \
} while (0)
#define _evl_spin_trylock(__lock) \
...
...
@@ -139,7 +139,7 @@ typedef struct evl_spinlock {
#define evl_spin_unlock(__lock) \
do { \
raw_spin_unlock(&(__lock)->_lock) \
raw_spin_unlock(&(__lock)->_lock)
;
\
evl_enable_preempt(); \
} while (0)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment