diff options
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r-- | sys/kern/kern_mutex.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index 85ca646..4a425bb 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -133,28 +133,28 @@ struct lock_class lock_class_mtx_spin = { struct mtx blocked_lock; struct mtx Giant; -void +static void assert_mtx(struct lock_object *lock, int what) { mtx_assert((struct mtx *)lock, what); } -void +static void lock_mtx(struct lock_object *lock, int how) { mtx_lock((struct mtx *)lock); } -void +static void lock_spin(struct lock_object *lock, int how) { panic("spin locks can only use msleep_spin"); } -int +static int unlock_mtx(struct lock_object *lock) { struct mtx *m; @@ -165,7 +165,8 @@ unlock_mtx(struct lock_object *lock) return (0); } -int +/* XXX: FlexeLint retval */ +static int unlock_spin(struct lock_object *lock) { |