projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6101382
)
IB/rxe: Constify static rxe_vm_ops
author
Kamal Heib
<kamalheib1@gmail.com>
Thu, 15 Jun 2017 08:29:07 +0000
(11:29 +0300)
committer
Doug 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
patch
|
blob
|
history
diff --git
a/drivers/infiniband/sw/rxe/rxe_mmap.c
b/drivers/infiniband/sw/rxe/rxe_mmap.c
index
bd812e0
..
d22431e
100644
(file)
--- a/
drivers/infiniband/sw/rxe/rxe_mmap.c
+++ b/
drivers/infiniband/sw/rxe/rxe_mmap.c
@@
-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,
};