svn commit: r209056 - head/sys/sys
Andriy Gapon
avg at FreeBSD.org
Fri Jun 11 18:20:56 UTC 2010
Author: avg
Date: Fri Jun 11 18:20:56 2010
New Revision: 209056
URL: http://svn.freebsd.org/changeset/base/209056
Log:
vnode.h: expand debug macros to non-empty void statements when
DEBUG_VFS_LOCKS is disabled
MFC after: 2 weeks
Modified:
head/sys/sys/vnode.h
Modified: head/sys/sys/vnode.h
==============================================================================
--- head/sys/sys/vnode.h Fri Jun 11 18:19:23 2010 (r209055)
+++ head/sys/sys/vnode.h Fri Jun 11 18:20:56 2010 (r209056)
@@ -524,17 +524,17 @@ void assert_vop_unlocked(struct vnode *v
#else /* !DEBUG_VFS_LOCKS */
-#define ASSERT_VI_LOCKED(vp, str)
-#define ASSERT_VI_UNLOCKED(vp, str)
-#define ASSERT_VOP_ELOCKED(vp, str)
+#define ASSERT_VI_LOCKED(vp, str) ((void)0)
+#define ASSERT_VI_UNLOCKED(vp, str) ((void)0)
+#define ASSERT_VOP_ELOCKED(vp, str) ((void)0)
#if 0
#define ASSERT_VOP_ELOCKED_OTHER(vp, str)
#endif
-#define ASSERT_VOP_LOCKED(vp, str)
+#define ASSERT_VOP_LOCKED(vp, str) ((void)0)
#if 0
#define ASSERT_VOP_SLOCKED(vp, str)
#endif
-#define ASSERT_VOP_UNLOCKED(vp, str)
+#define ASSERT_VOP_UNLOCKED(vp, str) ((void)0)
#endif /* DEBUG_VFS_LOCKS */
More information about the svn-src-all
mailing list