[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/trunk@463 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib/kernel/ipoib_port.c

index 2b50a4c..6f09167 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