diff options
author | Joachim Fenkes <fenkes@de.ibm.com> | 2007-07-19 15:40:00 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-07-21 00:19:44 -0400 |
commit | 0c10f7b79b5bb07a37aa5927072abdc3f45ac8d3 (patch) | |
tree | 203a49fcfa257c961f0a70159310a9db682cd815 /drivers/infiniband/hw/ehca/ehca_qp.c | |
parent | 51d2bfbddb33dc59786a3a41f7eeb59e30fa561c (diff) |
IB/ehca: Make internal_create/destroy_qp() static
They're only used in ehca_qp.c, so make them static to that file.
Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ehca/ehca_qp.c')
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_qp.c | 17 |
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 | */ |
366 | struct ehca_qp *internal_create_qp(struct ib_pd *pd, | 366 | static 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 | ||
755 | int internal_destroy_qp(struct ib_device *dev, struct ehca_qp *my_qp, | 756 | static 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 | ||
758 | struct ib_srq *ehca_create_srq(struct ib_pd *pd, | 759 | struct 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 | ||
1672 | int internal_destroy_qp(struct ib_device *dev, struct ehca_qp *my_qp, | 1673 | static 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, |