Properly wrap mtx_intr_enable() macro in "do $bla while (0)"
This commit is contained in:
parent
a8ef346171
commit
0d31cbfab7
@ -39,7 +39,7 @@
|
||||
/* Global locks */
|
||||
extern struct mtx clock_lock;
|
||||
|
||||
#define mtx_intr_enable(mutex) (mutex)->mtx_savecrit = ALPHA_PSL_IPL_0
|
||||
#define mtx_intr_enable(mutex) do (mutex)->mtx_savecrit = ALPHA_PSL_IPL_0; while (0)
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
||||
/* Global locks */
|
||||
extern struct mtx clock_lock;
|
||||
|
||||
#define mtx_intr_enable(mutex) (mutex)->mtx_savecrit |= PSL_I
|
||||
#define mtx_intr_enable(mutex) do (mutex)->mtx_savecrit |= PSL_I; while (0)
|
||||
|
||||
/*
|
||||
* Assembly macros (for internal use only)
|
||||
|
@ -40,7 +40,7 @@
|
||||
/* Global locks */
|
||||
extern struct mtx clock_lock;
|
||||
|
||||
#define mtx_intr_enable(mutex) (mutex)->mtx_savecrit |= PSL_I
|
||||
#define mtx_intr_enable(mutex) do (mutex)->mtx_savecrit |= PSL_I; while (0)
|
||||
|
||||
/*
|
||||
* Assembly macros (for internal use only)
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
#ifdef _KERNEL
|
||||
|
||||
#define mtx_intr_enable(mutex) (mutex)->mtx_savecrit |= IA64_PSR_I
|
||||
#define mtx_intr_enable(mutex) do (mutex)->mtx_savecrit |= IA64_PSR_I; while (0)
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
||||
/* Global locks */
|
||||
extern struct mtx clock_lock;
|
||||
|
||||
#define mtx_intr_enable(mutex) (mutex)->mtx_savecrit = ALPHA_PSL_IPL_0
|
||||
#define mtx_intr_enable(mutex) do (mutex)->mtx_savecrit = ALPHA_PSL_IPL_0; while (0)
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user