IB/rxe: Constify static rxe_vm_ops
authorKamal Heib <kamalheib1@gmail.com>
Thu, 15 Jun 2017 08:29:07 +0000 (11:29 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 24 Jul 2017 12:43:12 +0000 (08:43 -0400)
Constify static rxe_vm_ops that is never modified.

Signed-off-by: Kamal Heib <kamalh@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rxe/rxe_mmap.c

index bd812e0..d22431e 100644 (file)
@@ -76,7 +76,7 @@ static void rxe_vma_close(struct vm_area_struct *vma)
        kref_put(&ip->ref, rxe_mmap_release);
 }
 
-static struct vm_operations_struct rxe_vm_ops = {
+static const struct vm_operations_struct rxe_vm_ops = {
        .open = rxe_vma_open,
        .close = rxe_vma_close,
 };