IB/core: Declare local functions 'static'
authorBart Van Assche <bvanassche@acm.org>
Tue, 22 Jan 2019 18:24:23 +0000 (10:24 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 24 Jan 2019 16:22:30 +0000 (09:22 -0700)
This patch avoids that sparse complains about missing function
declarations.

Fixes: f27a0d50a4bc ("RDMA/umem: Use umem->owning_mm inside ODP")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/umem_odp.c

index a4ec430..dc1d7cb 100644 (file)
@@ -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;