aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/lock.h
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2020-06-08 17:40:39 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2020-06-08 17:40:39 +0000
commit953171ba9e9e44e23dfe6c7fe93297dcf3c3fac1 (patch)
treedb6ebe223c17407355438c1b032e4112d6df7def /sys/sys/lock.h
parent33bb3dbe388364b74f0fa705c7bbfe3f7de80217 (diff)
downloadsrc-953171ba9e9e44e23dfe6c7fe93297dcf3c3fac1.tar.gz
src-953171ba9e9e44e23dfe6c7fe93297dcf3c3fac1.zip
Move MPASS() macros to systm.h. They are widely used all over
the kernel and aren't contained only to the locking code. Reviewed by: kib, mjg Differential Revision: https://reviews.freebsd.org/D23656
Notes
Notes: svn path=/head/; revision=361931
Diffstat (limited to 'sys/sys/lock.h')
-rw-r--r--sys/sys/lock.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h
index e82ff7db4825..9dd4e642f320 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -162,16 +162,6 @@ struct lock_class {
#define lock_initialized(lo) ((lo)->lo_flags & LO_INITIALIZED)
-/*
- * Helpful macros for quickly coming up with assertions with informative
- * panic messages.
- */
-#define MPASS(ex) MPASS4(ex, #ex, __FILE__, __LINE__)
-#define MPASS2(ex, what) MPASS4(ex, what, __FILE__, __LINE__)
-#define MPASS3(ex, file, line) MPASS4(ex, #ex, file, line)
-#define MPASS4(ex, what, file, line) \
- KASSERT((ex), ("Assertion %s failed at %s:%d", what, file, line))
-
extern struct lock_class lock_class_mtx_sleep;
extern struct lock_class lock_class_mtx_spin;
extern struct lock_class lock_class_sx;