]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[IPoIB] Fix release builds with no WPP tracing.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 24 Aug 2006 18:13:32 +0000 (18:13 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 24 Aug 2006 18:13:32 +0000 (18:13 +0000)
Submitted by Guy Corem (guyc@voltaire.com)

git-svn-id: svn://openib.tc.cornell.edu/gen1@463 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/ulp/ipoib/kernel/ipoib_port.c

index 2b50a4ca57de6a96b4323c4d3ec5d3da539be3d9..6f0916785412b7128b5ad299eab96e41f45822b0 100644 (file)
@@ -465,6 +465,8 @@ inline void ipoib_port_ref( ipoib_port_t * p_port, int type )
        cl_atomic_inc( &p_port->ref[type % ref_mask] );\r
        IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_OBJ,\r
                ("ref type %d ref_cnt %d\n", type, p_port->obj.ref_cnt) );\r
+#else\r
+       UNREFERENCED_PARAMETER(type);\r
 #endif\r
 }\r
 \r
@@ -477,6 +479,8 @@ inline void ipoib_port_deref(ipoib_port_t * p_port, int type)
        cl_atomic_dec( &p_port->ref[type % ref_mask] );\r
        IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_OBJ,\r
                ("deref type %d ref_cnt %d\n", type, p_port->obj.ref_cnt) );\r
+#else\r
+       UNREFERENCED_PARAMETER(type);\r
 #endif\r
 }\r
 \r