aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/lock.h
diff options
context:
space:
mode:
authorAttilio Rao <attilio@FreeBSD.org>2012-11-13 18:24:47 +0000
committerAttilio Rao <attilio@FreeBSD.org>2012-11-13 18:24:47 +0000
commit9684443508bc1c6ad3e9619d7e33c309b957b59f (patch)
treec4001d829a9c2aaa52fcfed2f01edca8c32f19b0 /sys/sys/lock.h
parent843ab1e81f15c61c45e5e0cf9cff62a7c90a3753 (diff)
downloadsrc-9684443508bc1c6ad3e9619d7e33c309b957b59f.tar.gz
src-9684443508bc1c6ad3e9619d7e33c309b957b59f.zip
Remove unused/obsolete macros.
MFC after: 3 days
Notes
Notes: svn path=/head/; revision=242988
Diffstat (limited to 'sys/sys/lock.h')
-rw-r--r--sys/sys/lock.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h
index 303717fe6eec..ab0122df7f74 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -304,16 +304,5 @@ void witness_thread_exit(struct thread *);
#define WITNESS_LINE(lock) (0)
#endif /* WITNESS */
-/*
- * Helper macros to allow developers to add explicit lock order checks
- * wherever they please without having to actually grab a lock to do so.
- */
-#define witness_check(l) \
- WITNESS_CHECKORDER(&(l)->lock_object, LOP_EXCLUSIVE, LOCK_FILE, \
- LOCK_LINE, NULL)
-
-#define witness_check_shared(l) \
- WITNESS_CHECKORDER(&(l)->lock_object, 0, LOCK_FILE, LOCK_LINE, NULL)
-
#endif /* _KERNEL */
#endif /* _SYS_LOCK_H_ */