svn commit: r209824 - stable/7/sys/sys
Andriy Gapon
avg at FreeBSD.org
Thu Jul 8 20:18:52 UTC 2010
Author: avg
Date: Thu Jul 8 20:18:52 2010
New Revision: 209824
URL: http://svn.freebsd.org/changeset/base/209824
Log:
MFC r209056: vnode.h: expand debug macros to non-empty void statements
when DEBUG_VFS_LOCKS is disabled
Modified:
stable/7/sys/sys/vnode.h
Directory Properties:
stable/7/sys/ (props changed)
stable/7/sys/cddl/contrib/opensolaris/ (props changed)
stable/7/sys/contrib/dev/acpica/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
Modified: stable/7/sys/sys/vnode.h
==============================================================================
--- stable/7/sys/sys/vnode.h Thu Jul 8 20:17:56 2010 (r209823)
+++ stable/7/sys/sys/vnode.h Thu Jul 8 20:18:52 2010 (r209824)
@@ -502,17 +502,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-stable
mailing list