summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_mutex.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2009-09-08 13:19:05 +0000
committerphk <phk@FreeBSD.org>2009-09-08 13:19:05 +0000
commit52972616516a18e69bb2849c2f2e718ee644b27f (patch)
tree9f7c1709b6ce492cd874120e81e8a117cab4ca7d /sys/kern/kern_mutex.c
parent2314521104388ada19392a3b2cdaca4ba6f82243 (diff)
downloadFreeBSD-src-52972616516a18e69bb2849c2f2e718ee644b27f.zip
FreeBSD-src-52972616516a18e69bb2849c2f2e718ee644b27f.tar.gz
Revert previous commit and add myself to the list of people who should
know better than to commit with a cat in the area.
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r--sys/kern/kern_mutex.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index 4a425bb..85ca646 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;
-static void
+void
assert_mtx(struct lock_object *lock, int what)
{
mtx_assert((struct mtx *)lock, what);
}
-static void
+void
lock_mtx(struct lock_object *lock, int how)
{
mtx_lock((struct mtx *)lock);
}
-static void
+void
lock_spin(struct lock_object *lock, int how)
{
panic("spin locks can only use msleep_spin");
}
-static int
+int
unlock_mtx(struct lock_object *lock)
{
struct mtx *m;
@@ -165,8 +165,7 @@ unlock_mtx(struct lock_object *lock)
return (0);
}
-/* XXX: FlexeLint retval */
-static int
+int
unlock_spin(struct lock_object *lock)
{
OpenPOWER on IntegriCloud