aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/lock.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2017-02-18 01:52:10 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2017-02-18 01:52:10 +0000
commita24c8eb84703bdf9e197712d32af42e0e789444c (patch)
tree75fdb697e56360f53c86e52bfd2b93de292accd5 /sys/sys/lock.h
parent68a558eca22df15b9dc148ef442b2b169ba25282 (diff)
downloadsrc-a24c8eb84703bdf9e197712d32af42e0e789444c.tar.gz
src-a24c8eb84703bdf9e197712d32af42e0e789444c.zip
mtx: plug the 'opts' argument when not used
Notes
Notes: svn path=/head/; revision=313908
Diffstat (limited to 'sys/sys/lock.h')
-rw-r--r--sys/sys/lock.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h
index 89b61ab73ddd..08ccaa5726f6 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -154,8 +154,13 @@ struct lock_class {
* file - file name
* line - line number
*/
+#if LOCK_DEBUG > 0
#define LOCK_LOG_TEST(lo, flags) \
(((flags) & LOP_QUIET) == 0 && ((lo)->lo_flags & LO_QUIET) == 0)
+#else
+#define LOCK_LOG_TEST(lo, flags) 0
+#endif
+
#define LOCK_LOG_LOCK(opname, lo, flags, recurse, file, line) do { \
if (LOCK_LOG_TEST((lo), (flags))) \