[openib-general] [PATCH] ib_verbs.h: Fix some ib_device declarations

Hal Rosenstock halr at voltaire.com
Wed Aug 11 08:32:35 PDT 2004


ib_verbs.h: Fix some ib_device declarations

Index: ib_verbs.h
===================================================================
--- ib_verbs.h	(revision 629)
+++ ib_verbs.h	(working copy)
@@ -677,7 +677,7 @@
 static inline int ib_modify_qp(struct ib_qp *qp,
 			       struct ib_qp_attr *qp_attr,
 			       int qp_attr_mask,
-			       struct ib_qp_cap *qp_cap )
+			       struct ib_qp_cap *qp_cap)
 {
 	return qp->device->modify_qp(qp, qp_attr, qp_attr_mask, qp_cap);
 }
@@ -903,6 +903,7 @@
 	return cq->device->req_n_notify_cq(cq, wc_cnt);
 }
 
+
 enum ib_process_mad_flags {
 	IB_MAD_IGNORE_MKEY	= 1
 };
@@ -932,28 +933,28 @@
 				       u8 port_num, u16 index, u16 *pkey);
 	int		 (*modify_device)(struct ib_device *device,
 					  u8 port_num, int device_attr_flags);
-	struct ib_pd	 (*alloc_pd)(struct ib_device *device);
+	struct ib_pd *	 (*alloc_pd)(struct ib_device *device);
 	int		 (*dealloc_pd)(struct ib_pd *pd);
-	struct ib_ah	 (*create_ah)(struct ib_pd *pd,
+	struct ib_ah *	 (*create_ah)(struct ib_pd *pd,
 				      struct ib_ah_attr *ah_attr);
 	int		 (*modify_ah)(struct ib_ah *ah,
 				      struct ib_ah_attr *ah_attr);
 	int		 (*query_ah)(struct ib_ah *ah,
 				     struct ib_ah_attr *ah_attr);
 	int		 (*destroy_ah)(struct ib_ah *ah);
-	struct ib_qp	 (*create_qp)(struct ib_pd *pd,
+	struct ib_qp *	 (*create_qp)(struct ib_pd *pd,
 				      struct ib_qp_init_attr *qp_init_attr,
 				      struct ib_qp_cap *qp_cap);
 	int		 (*modify_qp)(struct ib_qp *qp,
 				      struct ib_qp_attr *qp_attr,
 				      int qp_attr_mask,
-				      struct ib_qp_cap *qp_cap );
+				      struct ib_qp_cap *qp_cap);
 	int		 (*query_qp)(struct ib_qp *qp,
 				    struct ib_qp_attr *qp_attr,
 				    int qp_attr_mask,
 				    struct ib_qp_init_attr *qp_init_attr);
 	int		 (*destroy_qp)(struct ib_qp *qp);
-	struct ib_srq	 (*create_srq)(struct ib_pd *pd,
+	struct ib_srq *	 (*create_srq)(struct ib_pd *pd,
 				       void *srq_context,
 				       struct ib_srq_attr *srq_attr);
 	int		 (*query_srq)(struct ib_srq *srq,
@@ -966,12 +967,12 @@
 	int		 (*post_srq)(struct ib_srq *srq,
 				     struct ib_recv_wr *recv_wr,
 				     struct ib_recv_wr **bad_recv_wr);
-	struct ib_cq	 (*create_cq)(struct ib_device *device,
+	struct ib_cq *	 (*create_cq)(struct ib_device *device,
 				      ib_comp_handler comp_handler,
 				      void *cq_context, int cqe);
 	int		 (*resize_cq)(struct ib_cq *cq, int cqe);
 	int		 (*destroy_cq)(struct ib_cq *cq);
-	struct ib_mr	 (*reg_phys_mr)(struct ib_pd *pd,
+	struct ib_mr *	 (*reg_phys_mr)(struct ib_pd *pd,
 					struct ib_phys_buf *phys_buf_array,
 					int num_phys_buf,
 					int mr_access_flags,
@@ -986,12 +987,12 @@
 					  int num_phys_buf,
 					  int mr_access_flags,
 					  u64 *iova_start);
-	struct ib_mw	 (*alloc_mw)(struct ib_pd *pd);
+	struct ib_mw *	 (*alloc_mw)(struct ib_pd *pd);
 	int		 (*bind_mw)(struct ib_qp *qp,
 				    struct ib_mw *mw,
 				    struct ib_mw_bind *mw_bind);
 	int		 (*dealloc_mw)(struct ib_mw *mw);
-	struct ib_fmr	 (*alloc_fmr)(struct ib_pd *pd,
+	struct ib_fmr *	 (*alloc_fmr)(struct ib_pd *pd,
 				      int mr_access_flags,
 				      struct ib_fmr_attr *fmr_attr);
 	int		 (*map_fmr)(struct ib_fmr *fmr, void *addr, u64 size);






More information about the general mailing list