Fix build without INVARIANTS/INVARIANT_SUPPORT:

- Replace "emulation" of return in lmutex_lock_interruptible macros by
    proper static/inline function.

Submitted by:	Guy Yur
This commit is contained in:
Oleksandr Tymoshenko 2015-02-13 02:10:09 +00:00
parent 7f192d49b7
commit e6c4672e82

View File

@ -151,10 +151,16 @@ struct mutex {
#define lmutex_init(lock) mtx_init(&(lock)->mtx, #lock, NULL, MTX_DEF)
#define lmutex_lock(lock) mtx_lock(&(lock)->mtx)
#define lmutex_lock_interruptible(lock) (mtx_lock(&(lock)->mtx),0)
#define lmutex_unlock(lock) mtx_unlock(&(lock)->mtx)
#define lmutex_destroy(lock) mtx_destroy(&(lock)->mtx)
static __inline int
lmutex_lock_interruptible(struct mutex *lock)
{
mtx_lock(&(lock)->mtx);
return 0;
}
/*
* Rwlock API
*/