summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorBart Van Assche2019-01-22 19:24:39 +0100
committerJason Gunthorpe2019-01-24 17:22:30 +0100
commit0a353c2e9435ecea39f8ffbe09dc88fd931e88fd (patch)
tree1fd72b247c2361feec809dd2034623a6dae29d42 /drivers/infiniband/hw
parentIB/core: Declare local functions 'static' (diff)
downloadkernel-qcow2-linux-0a353c2e9435ecea39f8ffbe09dc88fd931e88fd.tar.gz
kernel-qcow2-linux-0a353c2e9435ecea39f8ffbe09dc88fd931e88fd.tar.xz
kernel-qcow2-linux-0a353c2e9435ecea39f8ffbe09dc88fd931e88fd.zip
IB/mlx5: Declare local functions 'static'
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>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/mlx5/odp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/odp.c b/drivers/infiniband/hw/mlx5/odp.c
index 82ac6cdc7130..3abdfc3584c0 100644
--- a/drivers/infiniband/hw/mlx5/odp.c
+++ b/drivers/infiniband/hw/mlx5/odp.c
@@ -101,7 +101,7 @@ static int check_parent(struct ib_umem_odp *odp,
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 || !is_odp_mr(mr)))
return NULL;