diff mbox series

[for-next,1/2] IB/mlx5: Make mlx5_ib_stage_odp_cleanup() static

Message ID 20190130141343.9129-2-kamalheib1@gmail.com (mailing list archive)
State Mainlined
Commit f3ffed0ce49a41cdbac5a85f42baeebe334ca9ab
Delegated to: Jason Gunthorpe
Headers show
Series mlx5 fixes | expand

Commit Message

Kamal Heib Jan. 30, 2019, 2:13 p.m. UTC
The function mlx5_ib_stage_odp_cleanup() is only used in main.c

Fixes: d5d284b829a6 ("{net,IB}/mlx5: Move Page fault EQ and ODP logic to RDMA")
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
---
 drivers/infiniband/hw/mlx5/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Leon Romanovsky Jan. 30, 2019, 7:08 p.m. UTC | #1
On Wed, Jan 30, 2019 at 04:13:42PM +0200, Kamal Heib wrote:
> The function mlx5_ib_stage_odp_cleanup() is only used in main.c
>
> Fixes: d5d284b829a6 ("{net,IB}/mlx5: Move Page fault EQ and ODP logic to RDMA")
> Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
> ---
>  drivers/infiniband/hw/mlx5/main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Thanks,
Acked-by: Leon Romanovsky <leonro@mellanox.com>
diff mbox series

Patch

diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
index 2aaa196c2653..96bf1b2f9dd7 100644
--- a/drivers/infiniband/hw/mlx5/main.c
+++ b/drivers/infiniband/hw/mlx5/main.c
@@ -6176,7 +6176,7 @@  static int mlx5_ib_stage_odp_init(struct mlx5_ib_dev *dev)
 	return mlx5_ib_odp_init_one(dev);
 }
 
-void mlx5_ib_stage_odp_cleanup(struct mlx5_ib_dev *dev)
+static void mlx5_ib_stage_odp_cleanup(struct mlx5_ib_dev *dev)
 {
 	mlx5_ib_odp_cleanup_one(dev);
 }