Skip to contentSkip to conversation

infiniband-diags: remove mad.h from ibstat

PATCH New Ira Weiny 1 participant 1 message Apr 30, 2012 InfiniBand

lore
Share & tools
lore

Ira Weiny

author
#0 lore raw

PATCH 1/1 infiniband-diags: remove mad.h from ibstat

ibstat does not require libibmad directly.

The change to ibdiag_common was required because of the conflict between the define in ib_types.h and enum in mad.h which presented itself after the fix in ibstat.

---
 include/ibdiag_common.h |    2 +-
 src/ibstat.c            |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)
include/ibdiag_common.h +1 -1
index 09dc319..6645322 100644
@@ -39,8 +39,8 @@
 #ifndef _IBDIAG_COMMON_H_
 #define _IBDIAG_COMMON_H_
 
-#include <infiniband/iba/ib_types.h>
 #include <infiniband/mad.h>
+#include <infiniband/iba/ib_types.h>
 #include <infiniband/ibnetdisc.h>
 
 extern int ibverbose;
src/ibstat.c +0 -1
index ade5d7a..f953cf4 100644
@@ -50,7 +50,6 @@
 #include <errno.h>
 
 #include <infiniband/umad.h>
-#include <infiniband/mad.h>
 
 #include <ibdiag_common.h>
 
Signature · 6 lines
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html