Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Nov 2012 18:24:48 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r242988 - head/sys/sys
Message-ID:  <201211131824.qADIOmqx095958@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211131824.qADIOmqx095958>