summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2012-11-13 18:24:47 +0000
committerattilio <attilio@FreeBSD.org>2012-11-13 18:24:47 +0000
commit1db9f61af840eb24956d29287197a25526f6b449 (patch)
treec4001d829a9c2aaa52fcfed2f01edca8c32f19b0 /sys/sys
parent20ea2f5691cde5b64ef51b10e38546e726d1cd6e (diff)
downloadFreeBSD-src-1db9f61af840eb24956d29287197a25526f6b449.zip
FreeBSD-src-1db9f61af840eb24956d29287197a25526f6b449.tar.gz
Remove unused/obsolete macros.
MFC after: 3 days
Diffstat (limited to 'sys/sys')
-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 303717f..ab0122d 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_ */
OpenPOWER on IntegriCloud