[ofw] [PATCH] [IBAT] ibat: fix slow build

Alex Estrin alex.estrin at qlogic.com
Fri Jan 30 21:46:20 PST 2009


Hello,

Would you please explain why you removed MSC_WARNING_LEVEL= /W4 ?

Thanks,
Alex.
________________________________________
From: ofw-bounces at lists.openfabrics.org [ofw-bounces at lists.openfabrics.org] On Behalf Of Sean Hefty [sean.hefty at intel.com]
Sent: Friday, January 30, 2009 7:28 PM
To: Hefty, Sean; ofw at lists.openfabrics.org
Subject: [ofw] [PATCH] [IBAT] ibat: fix slow build

The following patch to ibat allows it to build in a timely manner.

Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
I can commit this.

Index: core/ibat/user/SOURCES
===================================================================
--- core/ibat/user/SOURCES      (revision 1864)
+++ core/ibat/user/SOURCES      (working copy)
@@ -1,14 +1,8 @@
-TARGETNAME=ibat
+TARGETNAME = ibat

-TARGETPATH=..\..\..\bin\user\obj$(BUILD_ALT_DIR)
-TARGETTYPE=LIBRARY
+TARGETPATH = ..\..\..\bin\user\obj$(BUILD_ALT_DIR)
+TARGETTYPE = LIBRARY

-SOURCES=\
-       ibat.cpp
+SOURCES = ibat.cpp

-
-INCLUDES=$(SDK_INC_PATH);..;..\..\..\inc;..\..\..\inc\user;$(PLATFORM_SDK_PATH)
\Include
-
-USER_C_FLAGS=$(USER_C_FLAGS)
-
-MSC_WARNING_LEVEL= /W4
+INCLUDES = ..\..\..\inc;..\..\..\inc\user;
Index: inc/iba/ib_at_ioctl.h
===================================================================
--- inc/iba/ib_at_ioctl.h       (revision 1864)
+++ inc/iba/ib_at_ioctl.h       (working copy)
@@ -33,13 +33,13 @@

 /* This file is shared between user- and kernel-mode */

-#include <iba/ib_types.h>

-
 #ifndef        _IB_AT_IOCTL_H_
 #define        _IB_AT_IOCTL_H_

+#include <iba/ib_types.h>

+
 #define        IBAT_IOCTL_VERSION              5

 #define        IBAT_MAC_LEN                    6
Index: inc/user/iba/ibat.h
===================================================================
--- inc/user/iba/ibat.h (revision 1864)
+++ inc/user/iba/ibat.h (working copy)
@@ -29,6 +29,9 @@
  * $Id:$
  */

+#ifndef _IBAT_H_
+#define _IBAT_H_
+
 #include <winsock2.h>
 #include <ws2tcpip.h>

@@ -60,3 +63,5 @@
     );

 #endif /* __cplusplus */
+
+#endif // _IBAT_H_
\ No newline at end of file


_______________________________________________
ofw mailing list
ofw at lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw



More information about the ofw mailing list