[ofw] patch: Allow ipoib 6 to compile as a C++ driver

Leonid Keller leonid at mellanox.co.il
Mon Jul 6 01:26:22 PDT 2009


Applied in 2278, thank you.


________________________________

	From: ofw-bounces at lists.openfabrics.org
[mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Tzachi Dar
	Sent: Sunday, June 28, 2009 12:04 PM
	To: ofw at lists.openfabrics.org
	Subject: [ofw] patch: Allow ipoib 6 to compile as a C++ driver
	
	
	Index: core/complib/kernel/cl_driver.c
	
===================================================================
	--- core/complib/kernel/cl_driver.c (revision 2263)
	+++ core/complib/kernel/cl_driver.c (working copy)
	@@ -69,7 +69,7 @@
	 
	 #if defined( _DEBUG_ )
	 
	-VOID cl_dbg_out( IN PCCH  format, ...)
	+VOID cl_dbg_out( IN const char* const format, ...)
	 {
	  va_list  list;
	  va_start(list, format);
	Index: inc/kernel/complib/cl_debug_osd.h
	
===================================================================
	--- inc/kernel/complib/cl_debug_osd.h (revision 2263)
	+++ inc/kernel/complib/cl_debug_osd.h (working copy)
	@@ -59,8 +59,16 @@
	 
	 
	 #if defined( _DEBUG_ )
	-//#define cl_dbg_out DbgPrintHelper
	-VOID cl_dbg_out( IN PCCH  Format, ...);
	+#ifdef __cplusplus
	+extern "C"
	+{
	+#endif
	+
	+VOID cl_dbg_out( IN const char * const  Format, ...);
	+#ifdef __cplusplus
	+}
	+#endif
	+
	 #else
	 #define cl_dbg_out __noop
	 #endif /* defined( _DEBUG_ ) */
	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20090706/342b2be6/attachment.html>


More information about the ofw mailing list