提交 0c10f7b7 编写于 作者: J Joachim Fenkes 提交者: Roland Dreier

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: NJoachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: NRoland Dreier <rolandd@cisco.com>
上级 51d2bfbd
...@@ -363,10 +363,11 @@ static inline int init_qp_queue(struct ehca_shca *shca, ...@@ -363,10 +363,11 @@ static inline int init_qp_queue(struct ehca_shca *shca,
* the value of the is_srq parameter. If init_attr and srq_init_attr share * the value of the is_srq parameter. If init_attr and srq_init_attr share
* fields, the field out of init_attr is used. * fields, the field out of init_attr is used.
*/ */
struct ehca_qp *internal_create_qp(struct ib_pd *pd, static struct ehca_qp *internal_create_qp(
struct ib_qp_init_attr *init_attr, struct ib_pd *pd,
struct ib_srq_init_attr *srq_init_attr, struct ib_qp_init_attr *init_attr,
struct ib_udata *udata, int is_srq) struct ib_srq_init_attr *srq_init_attr,
struct ib_udata *udata, int is_srq)
{ {
struct ehca_qp *my_qp; struct ehca_qp *my_qp;
struct ehca_pd *my_pd = container_of(pd, struct ehca_pd, ib_pd); 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,8 +753,8 @@ struct ib_qp *ehca_create_qp(struct ib_pd *pd,
return IS_ERR(ret) ? (struct ib_qp *)ret : &ret->ib_qp; return IS_ERR(ret) ? (struct ib_qp *)ret : &ret->ib_qp;
} }
int internal_destroy_qp(struct ib_device *dev, struct ehca_qp *my_qp, static int internal_destroy_qp(struct ib_device *dev, struct ehca_qp *my_qp,
struct ib_uobject *uobject); struct ib_uobject *uobject);
struct ib_srq *ehca_create_srq(struct ib_pd *pd, struct ib_srq *ehca_create_srq(struct ib_pd *pd,
struct ib_srq_init_attr *srq_init_attr, struct ib_srq_init_attr *srq_init_attr,
...@@ -1669,8 +1670,8 @@ int ehca_query_srq(struct ib_srq *srq, struct ib_srq_attr *srq_attr) ...@@ -1669,8 +1670,8 @@ int ehca_query_srq(struct ib_srq *srq, struct ib_srq_attr *srq_attr)
return ret; return ret;
} }
int internal_destroy_qp(struct ib_device *dev, struct ehca_qp *my_qp, static int internal_destroy_qp(struct ib_device *dev, struct ehca_qp *my_qp,
struct ib_uobject *uobject) struct ib_uobject *uobject)
{ {
struct ehca_shca *shca = container_of(dev, struct ehca_shca, ib_device); struct ehca_shca *shca = container_of(dev, struct ehca_shca, ib_device);
struct ehca_pd *my_pd = container_of(my_qp->ib_qp.pd, struct ehca_pd, struct ehca_pd *my_pd = container_of(my_qp->ib_qp.pd, struct ehca_pd,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册