svn commit: r242988 - head/sys/sys
Attilio Rao
attilio at FreeBSD.org
Tue Nov 13 18:24:48 UTC 2012
Author: attilio
Date: Tue Nov 13 18:24:47 2012
New Revision: 242988
URL: http://svnweb.freebsd.org/changeset/base/242988
Log:
Remove unused/obsolete macros.
MFC after: 3 days
Modified:
head/sys/sys/lock.h
Modified: head/sys/sys/lock.h
==============================================================================
--- head/sys/sys/lock.h Tue Nov 13 17:16:03 2012 (r242987)
+++ head/sys/sys/lock.h Tue Nov 13 18:24:47 2012 (r242988)
@@ -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_ */
More information about the svn-src-head
mailing list