This patch avoids that sparse complains about missing function declarations. Cc: Jason Gunthorpe <jgg@xxxxxxxxxxxx> Cc: Leon Romanovsky <leonro@xxxxxxxxxxxx> Cc: Doug Ledford <dledford@xxxxxxxxxx> Fixes: f27a0d50a4bc ("RDMA/umem: Use umem->owning_mm inside ODP") # v4.20 Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx> --- drivers/infiniband/core/umem_odp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/core/umem_odp.c b/drivers/infiniband/core/umem_odp.c index a4ec43093cb3..dc1d7cb15cfa 100644 --- a/drivers/infiniband/core/umem_odp.c +++ b/drivers/infiniband/core/umem_odp.c @@ -299,7 +299,7 @@ static void free_per_mm(struct rcu_head *rcu) kfree(container_of(rcu, struct ib_ucontext_per_mm, rcu)); } -void put_per_mm(struct ib_umem_odp *umem_odp) +static void put_per_mm(struct ib_umem_odp *umem_odp) { struct ib_ucontext_per_mm *per_mm = umem_odp->per_mm; struct ib_ucontext *ctx = umem_odp->umem.context; -- 2.20.1.321.g9e740568ce-goog