aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/lock.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2017-03-01 05:18:22 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2017-03-01 05:18:22 +0000
commit51abf0d5e3ca08242334167a07ad9ad3841adf3a (patch)
tree7e47ed9d84f3d0ea227776c8e579395878d36032 /sys/sys/lock.h
parent7fec199b3bec905dc9c6e260a3295c7c3c840f76 (diff)
downloadsrc-51abf0d5e3ca08242334167a07ad9ad3841adf3a.tar.gz
src-51abf0d5e3ca08242334167a07ad9ad3841adf3a.zip
locks: fix compilation with KTR wihout KTR_LOCKS
While here wrap the overly long line. Reported by: np
Notes
Notes: svn path=/head/; revision=314476
Diffstat (limited to 'sys/sys/lock.h')
-rw-r--r--sys/sys/lock.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h
index 08ccaa5726f6..cc34cb46b716 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -125,7 +125,8 @@ struct lock_class {
* calling conventions for this debugging code in modules so that modules can
* work with both debug and non-debug kernels.
*/
-#if defined(KLD_MODULE) || defined(WITNESS) || defined(INVARIANTS) || defined(INVARIANT_SUPPORT) || defined(LOCK_PROFILING) || (defined(KTR) && (KTR_COMPILE & KTR_LOCK))
+#if defined(KLD_MODULE) || defined(WITNESS) || defined(INVARIANTS) || \
+ defined(INVARIANT_SUPPORT) || defined(LOCK_PROFILING) || defined(KTR)
#define LOCK_DEBUG 1
#else
#define LOCK_DEBUG 0