From: Bart Van Assche <bvanassche@acm.org>
Date: Tue, 22 Jan 2019 10:24:39 -0800
Subject: IB/mlx5: Declare local functions 'static'
Patch-mainline: v5.1-rc1
Git-commit: 0a353c2e9435ecea39f8ffbe09dc88fd931e88fd
References: bsc#1103992 FATE#326009
This patch avoids that sparse complains about missing function
declarations.
Fixes: c9990ab39b6e ("RDMA/umem: Move all the ODP related stuff out of ucontext and into per_mm")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Acked-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
---
drivers/infiniband/hw/mlx5/odp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/infiniband/hw/mlx5/odp.c
+++ b/drivers/infiniband/hw/mlx5/odp.c
@@ -61,7 +61,7 @@ static int check_parent(struct ib_umem_o
return mr && mr->parent == parent && !odp->dying;
}
-struct ib_ucontext_per_mm *mr_to_per_mm(struct mlx5_ib_mr *mr)
+static struct ib_ucontext_per_mm *mr_to_per_mm(struct mlx5_ib_mr *mr)
{
if (WARN_ON(!mr || !mr->umem || !mr->umem->is_odp))
return NULL;