[openib-general] [PATCH] fix exporting ib_attach_mcast/ib_detach_mcast

Sean Hefty mshefty at ichips.intel.com
Wed Sep 1 16:10:51 PDT 2004


This patch fixes exporting the multicast functions.

- Sean

-- 
Index: ib_verbs.h
===================================================================
--- ib_verbs.h	(revision 716)
+++ ib_verbs.h	(working copy)
@@ -899,9 +899,12 @@
 		    union ib_gid *gid,
 		    u16 lid);
 
-int ib_detach_mcast(struct ib_qp *qp,
-		    union ib_gid *gid,
-		    u16 lid);
+static inline int ib_detach_mcast(struct ib_qp *qp,
+				  union ib_gid *gid,
+				  u16 lid)
+{
+	return qp->device->detach_mcast(qp, gid, lid);
+}
 
 static inline int ib_post_send(struct ib_qp *qp,
 			       struct ib_send_wr *send_wr,
Index: ib_verbs.c
===================================================================
--- ib_verbs.c	(revision 714)
+++ ib_verbs.c	(working copy)
@@ -473,10 +473,4 @@
 
 	return qp->device->attach_mcast(qp, gid, lid);
 }
-
-int ib_detach_mcast(struct ib_qp *qp,
-		    union ib_gid *gid,
-		    u16 lid)
-{
-	return qp->device->detach_mcast(qp, gid, lid);
-}
+EXPORT_SYMBOL(ib_attach_mcast);



More information about the general mailing list