aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/ehca/ehca_qp.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_qp.c b/drivers/infiniband/hw/ehca/ehca_qp.c
index a3146e696c5d..483f0ca1acc4 100644
--- a/drivers/infiniband/hw/ehca/ehca_qp.c
+++ b/drivers/infiniband/hw/ehca/ehca_qp.c
@@ -363,10 +363,11 @@ init_qp_queue1:
363 * the value of the is_srq parameter. If init_attr and srq_init_attr share 363 * the value of the is_srq parameter. If init_attr and srq_init_attr share
364 * fields, the field out of init_attr is used. 364 * fields, the field out of init_attr is used.
365 */ 365 */
366struct ehca_qp *internal_create_qp(struct ib_pd *pd, 366static struct ehca_qp *internal_create_qp(
367 struct ib_qp_init_attr *init_attr, 367 struct ib_pd *pd,
368 struct ib_srq_init_attr *srq_init_attr, 368 struct ib_qp_init_attr *init_attr,
369 struct ib_udata *udata, int is_srq) 369 struct ib_srq_init_attr *srq_init_attr,
370 struct ib_udata *udata, int is_srq)
370{ 371{
371 struct ehca_qp *my_qp; 372 struct ehca_qp *my_qp;
372 struct ehca_pd *my_pd = container_of(pd, struct ehca_pd, ib_pd); 373 struct ehca_pd *my_pd = container_of(pd, struct ehca_pd, ib_pd);
@@ -752,8 +753,8 @@ struct ib_qp *ehca_create_qp(struct ib_pd *pd,
752 return IS_ERR(ret) ? (struct ib_qp *)ret : &ret->ib_qp; 753 return IS_ERR(ret) ? (struct ib_qp *)ret : &ret->ib_qp;
753} 754}
754 755
755int internal_destroy_qp(struct ib_device *dev, struct ehca_qp *my_qp, 756static int internal_destroy_qp(struct ib_device *dev, struct ehca_qp *my_qp,
756 struct ib_uobject *uobject); 757 struct ib_uobject *uobject);
757 758
758struct ib_srq *ehca_create_srq(struct ib_pd *pd, 759struct ib_srq *ehca_create_srq(struct ib_pd *pd,
759 struct ib_srq_init_attr *srq_init_attr, 760 struct ib_srq_init_attr *srq_init_attr,
@@ -1669,8 +1670,8 @@ query_srq_exit1:
1669 return ret; 1670 return ret;
1670} 1671}
1671 1672
1672int internal_destroy_qp(struct ib_device *dev, struct ehca_qp *my_qp, 1673static int internal_destroy_qp(struct ib_device *dev, struct ehca_qp *my_qp,
1673 struct ib_uobject *uobject) 1674 struct ib_uobject *uobject)
1674{ 1675{
1675 struct ehca_shca *shca = container_of(dev, struct ehca_shca, ib_device); 1676 struct ehca_shca *shca = container_of(dev, struct ehca_shca, ib_device);
1676 struct ehca_pd *my_pd = container_of(my_qp->ib_qp.pd, struct ehca_pd, 1677 struct ehca_pd *my_pd = container_of(my_qp->ib_qp.pd, struct ehca_pd,