aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_sx.c7
-rw-r--r--sys/sys/sx.h2
2 files changed, 8 insertions, 1 deletions
diff --git a/sys/kern/kern_sx.c b/sys/kern/kern_sx.c
index 83820fb96ef2..9471731e99fb 100644
--- a/sys/kern/kern_sx.c
+++ b/sys/kern/kern_sx.c
@@ -128,6 +128,13 @@ sx_sysinit(void *arg)
}
void
+sx_init(struct sx *sx, const char *description)
+{
+
+ sx_init_flags(sx, description, 0);
+}
+
+void
sx_init_flags(struct sx *sx, const char *description, int opts)
{
struct lock_object *lock;
diff --git a/sys/sys/sx.h b/sys/sys/sx.h
index 47fdae63c1a7..2d798a91039d 100644
--- a/sys/sys/sx.h
+++ b/sys/sys/sx.h
@@ -96,7 +96,7 @@
* of the public interface and are wrappered with a macro.
*/
void sx_sysinit(void *arg);
-#define sx_init(sx, desc) sx_init_flags((sx), (desc), 0)
+void sx_init(struct sx *sx, const char *description);
void sx_init_flags(struct sx *sx, const char *description, int opts);
void sx_destroy(struct sx *sx);
int _sx_slock(struct sx *sx, int opts, const char *file, int line);