[ofa-general] [PATCH] libibmad,infiniband-diags: fix include paths

Sasha Khapyorsky sashak at voltaire.com
Tue Sep 18 21:37:50 PDT 2007


Use include <infiniband/*.h> (rather than just <*.h>) for external
management header files from libibcommon and libibumad (also libibmad
for diags).

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 infiniband-diags/src/grouping.c      |    4 ++--
 infiniband-diags/src/ibaddr.c        |    6 +++---
 infiniband-diags/src/ibnetdiscover.c |    6 +++---
 infiniband-diags/src/ibping.c        |    6 +++---
 infiniband-diags/src/ibportstate.c   |    6 +++---
 infiniband-diags/src/ibroute.c       |    6 +++---
 infiniband-diags/src/ibstat.c        |    6 +++---
 infiniband-diags/src/ibsysstat.c     |    6 +++---
 infiniband-diags/src/ibtracert.c     |    6 +++---
 infiniband-diags/src/perfquery.c     |    6 +++---
 infiniband-diags/src/sminfo.c        |    6 +++---
 infiniband-diags/src/smpdump.c       |    6 +++---
 infiniband-diags/src/smpquery.c      |    6 +++---
 infiniband-diags/src/vendstat.c      |    6 +++---
 libibmad/src/gs.c                    |    2 +-
 libibmad/src/mad.c                   |    4 ++--
 libibmad/src/register.c              |    2 +-
 libibmad/src/resolve.c               |    4 ++--
 libibmad/src/rpc.c                   |    2 +-
 libibmad/src/serv.c                  |    4 ++--
 20 files changed, 50 insertions(+), 50 deletions(-)

diff --git a/infiniband-diags/src/grouping.c b/infiniband-diags/src/grouping.c
index 89b7ea0..621d49e 100644
--- a/infiniband-diags/src/grouping.c
+++ b/infiniband-diags/src/grouping.c
@@ -44,8 +44,8 @@
 #include <stdlib.h>
 #include <inttypes.h>
 
-#include <common.h>
-#include <mad.h>
+#include <infiniband/common.h>
+#include <infiniband/mad.h>
 
 #include "ibnetdiscover.h"
 #include "grouping.h"
diff --git a/infiniband-diags/src/ibaddr.c b/infiniband-diags/src/ibaddr.c
index 04aa2fa..c61b6b7 100644
--- a/infiniband-diags/src/ibaddr.c
+++ b/infiniband-diags/src/ibaddr.c
@@ -42,9 +42,9 @@
 #include <getopt.h>
 
 #define __BUILD_VERSION_TAG__ 1.2
-#include <common.h>
-#include <umad.h>
-#include <mad.h>
+#include <infiniband/common.h>
+#include <infiniband/umad.h>
+#include <infiniband/mad.h>
 
 #include "ibdiag_common.h"
 
diff --git a/infiniband-diags/src/ibnetdiscover.c b/infiniband-diags/src/ibnetdiscover.c
index 6574f2b..e627e84 100644
--- a/infiniband-diags/src/ibnetdiscover.c
+++ b/infiniband-diags/src/ibnetdiscover.c
@@ -48,9 +48,9 @@
 #include <inttypes.h>
 
 #define __BUILD_VERSION_TAG__ 1.2.5
-#include <common.h>
-#include <umad.h>
-#include <mad.h>
+#include <infiniband/common.h>
+#include <infiniband/umad.h>
+#include <infiniband/mad.h>
 
 #include "ibnetdiscover.h"
 #include "grouping.h"
diff --git a/infiniband-diags/src/ibping.c b/infiniband-diags/src/ibping.c
index 76f4258..ea46002 100644
--- a/infiniband-diags/src/ibping.c
+++ b/infiniband-diags/src/ibping.c
@@ -45,9 +45,9 @@
 #include <getopt.h>
 
 #define __BUILD_VERSION_TAG__ 1.2
-#include <common.h>
-#include <umad.h>
-#include <mad.h>
+#include <infiniband/common.h>
+#include <infiniband/umad.h>
+#include <infiniband/mad.h>
 
 #include "ibdiag_common.h"
 
diff --git a/infiniband-diags/src/ibportstate.c b/infiniband-diags/src/ibportstate.c
index 45af970..9ea7529 100644
--- a/infiniband-diags/src/ibportstate.c
+++ b/infiniband-diags/src/ibportstate.c
@@ -44,9 +44,9 @@
 #include <getopt.h>
 
 #define __BUILD_VERSION_TAG__ 1.2.2
-#include <common.h>
-#include <umad.h>
-#include <mad.h>
+#include <infiniband/common.h>
+#include <infiniband/umad.h>
+#include <infiniband/mad.h>
 
 #include "ibdiag_common.h"
 
diff --git a/infiniband-diags/src/ibroute.c b/infiniband-diags/src/ibroute.c
index 77beb36..44d2fc8 100644
--- a/infiniband-diags/src/ibroute.c
+++ b/infiniband-diags/src/ibroute.c
@@ -47,9 +47,9 @@
 #include <ctype.h>
 
 #define __BUILD_VERSION_TAG__ 1.2
-#include <common.h>
-#include <umad.h>
-#include <mad.h>
+#include <infiniband/common.h>
+#include <infiniband/umad.h>
+#include <infiniband/mad.h>
 
 #include "ibdiag_common.h"
 
diff --git a/infiniband-diags/src/ibstat.c b/infiniband-diags/src/ibstat.c
index 9f5e15d..4653390 100644
--- a/infiniband-diags/src/ibstat.c
+++ b/infiniband-diags/src/ibstat.c
@@ -58,9 +58,9 @@
 #include <netinet/in.h>
 
 #define __BUILD_VERSION_TAG__ 1.1
-#include <common.h>
-#include <umad.h>
-#include <mad.h>
+#include <infiniband/common.h>
+#include <infiniband/umad.h>
+#include <infiniband/mad.h>
 
 #define DEBUG			if (debug) IBWARN
 
diff --git a/infiniband-diags/src/ibsysstat.c b/infiniband-diags/src/ibsysstat.c
index 832c0e7..2435c87 100644
--- a/infiniband-diags/src/ibsysstat.c
+++ b/infiniband-diags/src/ibsysstat.c
@@ -44,9 +44,9 @@
 #include <getopt.h>
 
 #define __BUILD_VERSION_TAG__ 1.2
-#include <common.h>
-#include <umad.h>
-#include <mad.h>
+#include <infiniband/common.h>
+#include <infiniband/umad.h>
+#include <infiniband/mad.h>
 
 #include "ibdiag_common.h"
 
diff --git a/infiniband-diags/src/ibtracert.c b/infiniband-diags/src/ibtracert.c
index f085fd6..e553f4f 100644
--- a/infiniband-diags/src/ibtracert.c
+++ b/infiniband-diags/src/ibtracert.c
@@ -47,9 +47,9 @@
 #include <errno.h>
 
 #define __BUILD_VERSION_TAG__ 1.2.1
-#include <common.h>
-#include <umad.h>
-#include <mad.h>
+#include <infiniband/common.h>
+#include <infiniband/umad.h>
+#include <infiniband/mad.h>
 
 #include "ibdiag_common.h"
 
diff --git a/infiniband-diags/src/perfquery.c b/infiniband-diags/src/perfquery.c
index 315a900..2ae3281 100644
--- a/infiniband-diags/src/perfquery.c
+++ b/infiniband-diags/src/perfquery.c
@@ -42,9 +42,9 @@
 #include <getopt.h>
 
 #define __BUILD_VERSION_TAG__ 1.2.1
-#include <common.h>
-#include <umad.h>
-#include <mad.h>
+#include <infiniband/common.h>
+#include <infiniband/umad.h>
+#include <infiniband/mad.h>
 
 #include "ibdiag_common.h"
 
diff --git a/infiniband-diags/src/sminfo.c b/infiniband-diags/src/sminfo.c
index 9a0e5a7..0cd63f9 100644
--- a/infiniband-diags/src/sminfo.c
+++ b/infiniband-diags/src/sminfo.c
@@ -43,9 +43,9 @@
 #include <getopt.h>
 
 #define __BUILD_VERSION_TAG__ 1.2.1
-#include <common.h>
-#include <umad.h>
-#include <mad.h>
+#include <infiniband/common.h>
+#include <infiniband/umad.h>
+#include <infiniband/mad.h>
 
 #include "ibdiag_common.h"
 
diff --git a/infiniband-diags/src/smpdump.c b/infiniband-diags/src/smpdump.c
index 7ed621a..5eceea7 100644
--- a/infiniband-diags/src/smpdump.c
+++ b/infiniband-diags/src/smpdump.c
@@ -57,9 +57,9 @@
 #include <netinet/in.h>
 
 #define __BUILD_VERSION_TAG__ 1.1
-#include <common.h>
-#include <mad.h>
-#include <umad.h>
+#include <infiniband/common.h>
+#include <infiniband/mad.h>
+#include <infiniband/umad.h>
 
 #define DEBUG			if (debug) IBWARN
 
diff --git a/infiniband-diags/src/smpquery.c b/infiniband-diags/src/smpquery.c
index 9e25255..73e880b 100644
--- a/infiniband-diags/src/smpquery.c
+++ b/infiniband-diags/src/smpquery.c
@@ -48,9 +48,9 @@
 #include <inttypes.h>
 
 #define __BUILD_VERSION_TAG__ 1.2.2
-#include <common.h>
-#include <umad.h>
-#include <mad.h>
+#include <infiniband/common.h>
+#include <infiniband/umad.h>
+#include <infiniband/mad.h>
 
 #include "ibdiag_common.h"
 
diff --git a/infiniband-diags/src/vendstat.c b/infiniband-diags/src/vendstat.c
index 2c8ef3b..fa0206c 100644
--- a/infiniband-diags/src/vendstat.c
+++ b/infiniband-diags/src/vendstat.c
@@ -43,9 +43,9 @@
 #include <netinet/in.h>
 
 #define __BUILD_VERSION_TAG__ 1.2.1
-#include <common.h>
-#include <umad.h>
-#include <mad.h>
+#include <infiniband/common.h>
+#include <infiniband/umad.h>
+#include <infiniband/mad.h>
 
 #include "ibdiag_common.h"
 
diff --git a/libibmad/src/gs.c b/libibmad/src/gs.c
index 3489885..7e9f4f4 100644
--- a/libibmad/src/gs.c
+++ b/libibmad/src/gs.c
@@ -42,7 +42,7 @@
 #include <pthread.h>
 #include <sys/time.h>
 
-#include <umad.h>
+#include <infiniband/umad.h>
 #include "mad.h"
 
 #undef DEBUG
diff --git a/libibmad/src/mad.c b/libibmad/src/mad.c
index bbd39d8..1137fb5 100644
--- a/libibmad/src/mad.c
+++ b/libibmad/src/mad.c
@@ -42,9 +42,9 @@
 #include <pthread.h>
 #include <sys/time.h>
 
-#include <umad.h>
-#include <mad.h>
 #include <infiniband/common.h>
+#include <infiniband/umad.h>
+#include <mad.h>
 
 #undef DEBUG
 #define DEBUG	if (ibdebug)	IBWARN
diff --git a/libibmad/src/register.c b/libibmad/src/register.c
index 08e781a..3d1285a 100644
--- a/libibmad/src/register.c
+++ b/libibmad/src/register.c
@@ -43,7 +43,7 @@
 #include <string.h>
 #include <errno.h>
 
-#include <umad.h>
+#include <infiniband/umad.h>
 #include "mad.h"
 
 #undef DEBUG
diff --git a/libibmad/src/resolve.c b/libibmad/src/resolve.c
index 4a782ec..05b443d 100644
--- a/libibmad/src/resolve.c
+++ b/libibmad/src/resolve.c
@@ -42,9 +42,9 @@
 #include <string.h>
 #include <sys/time.h>
 
-#include <umad.h>
-#include <mad.h>
 #include <infiniband/common.h>
+#include <infiniband/umad.h>
+#include <mad.h>
 
 #undef DEBUG
 #define DEBUG 	if (ibdebug)	IBWARN
diff --git a/libibmad/src/rpc.c b/libibmad/src/rpc.c
index b9daa47..17f43b8 100644
--- a/libibmad/src/rpc.c
+++ b/libibmad/src/rpc.c
@@ -43,7 +43,7 @@
 #include <string.h>
 #include <errno.h>
 
-#include <umad.h>
+#include <infiniband/umad.h>
 #include "mad.h"
 
 #define MAX_CLASS 256
diff --git a/libibmad/src/serv.c b/libibmad/src/serv.c
index e59cb63..9b20cb6 100644
--- a/libibmad/src/serv.c
+++ b/libibmad/src/serv.c
@@ -43,9 +43,9 @@
 #include <string.h>
 #include <netinet/in.h>
 
-#include <umad.h>
-#include <mad.h>
 #include <infiniband/common.h>
+#include <infiniband/umad.h>
+#include <mad.h>
 
 #undef DEBUG
 #define DEBUG	if (ibdebug)	IBWARN
-- 
1.5.3.rc2.29.gc4640f




More information about the general mailing list