diff --git a/include/sys/mutex.h b/include/sys/mutex.h index 21f161cfb..b41b3cead 100644 --- a/include/sys/mutex.h +++ b/include/sys/mutex.h @@ -101,7 +101,7 @@ extern int spl_mutex_spin_max(void); # define spl_mutex_spin_max() 0 #endif /* HAVE_TASK_CURR */ -#define MUTEX(mp) ((struct mutex *)(mp)) +#define MUTEX(mp) (&((mp)->m_mutex)) static inline void spl_mutex_set_owner(kmutex_t *mp)