Author: avg
Date: Thu Jul  8 20:17:56 2010
New Revision: 209823
URL: http://svn.freebsd.org/changeset/base/209823

Log:
  MFC r209056: vnode.h: expand debug macros to non-empty void statements
  when DEBUG_VFS_LOCKS is disabled

Modified:
  stable/8/sys/sys/vnode.h
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/sys/vnode.h
==============================================================================
--- stable/8/sys/sys/vnode.h    Thu Jul  8 19:40:09 2010        (r209822)
+++ stable/8/sys/sys/vnode.h    Thu Jul  8 20:17:56 2010        (r209823)
@@ -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 */
 
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to