diff mbox series

[for-next] RDMA/qedr: Make qedr_iw_load_qp() static

Message ID 20191110113645.20058-1-kamalheib1@gmail.com (mailing list archive)
State Mainlined
Commit 9a5407d74c22821f7944e2be4209bdfc5faf8143
Delegated to: Jason Gunthorpe
Headers show
Series [for-next] RDMA/qedr: Make qedr_iw_load_qp() static | expand

Commit Message

Kamal Heib Nov. 10, 2019, 11:36 a.m. UTC
The function qedr_iw_load_qp() is only used in qedr_iw_cm.c

Fixes: 82af6d19d8d9 ("RDMA/qedr: Fix synchronization methods and memory leaks in qedr")
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
---
 drivers/infiniband/hw/qedr/qedr_iw_cm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michal Kalderon Nov. 10, 2019, 12:38 p.m. UTC | #1
> From: linux-rdma-owner@vger.kernel.org <linux-rdma-
> owner@vger.kernel.org> On Behalf Of Kamal Heib
> 
> The function qedr_iw_load_qp() is only used in qedr_iw_cm.c
> 
> Fixes: 82af6d19d8d9 ("RDMA/qedr: Fix synchronization methods and
> memory leaks in qedr")
> Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
> ---
>  drivers/infiniband/hw/qedr/qedr_iw_cm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/infiniband/hw/qedr/qedr_iw_cm.c
> b/drivers/infiniband/hw/qedr/qedr_iw_cm.c
> index 5e9732990be5..a98002018f0c 100644
> --- a/drivers/infiniband/hw/qedr/qedr_iw_cm.c
> +++ b/drivers/infiniband/hw/qedr/qedr_iw_cm.c
> @@ -506,7 +506,7 @@ qedr_addr6_resolve(struct qedr_dev *dev,
>  	return rc;
>  }
> 
> -struct qedr_qp *qedr_iw_load_qp(struct qedr_dev *dev, u32 qpn)
> +static struct qedr_qp *qedr_iw_load_qp(struct qedr_dev *dev, u32 qpn)
>  {
>  	struct qedr_qp *qp;
> 
> --
> 2.21.0

Thanks, 

Acked-by: Michal Kalderon <michal.kalderon@marvell.com>
Jason Gunthorpe Nov. 14, 2019, 3:56 p.m. UTC | #2
On Sun, Nov 10, 2019 at 01:36:45PM +0200, Kamal Heib wrote:
> The function qedr_iw_load_qp() is only used in qedr_iw_cm.c
> 
> Fixes: 82af6d19d8d9 ("RDMA/qedr: Fix synchronization methods and memory leaks in qedr")
> Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
> Acked-by: Michal Kalderon <michal.kalderon@marvell.com>
> ---
>  drivers/infiniband/hw/qedr/qedr_iw_cm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to for-next, thanks

Jason
diff mbox series

Patch

diff --git a/drivers/infiniband/hw/qedr/qedr_iw_cm.c b/drivers/infiniband/hw/qedr/qedr_iw_cm.c
index 5e9732990be5..a98002018f0c 100644
--- a/drivers/infiniband/hw/qedr/qedr_iw_cm.c
+++ b/drivers/infiniband/hw/qedr/qedr_iw_cm.c
@@ -506,7 +506,7 @@  qedr_addr6_resolve(struct qedr_dev *dev,
 	return rc;
 }
 
-struct qedr_qp *qedr_iw_load_qp(struct qedr_dev *dev, u32 qpn)
+static struct qedr_qp *qedr_iw_load_qp(struct qedr_dev *dev, u32 qpn)
 {
 	struct qedr_qp *qp;