projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/drivers/infiniband/sw/rxe/rxe_mmap.c
b/drivers/infiniband/sw/rxe/rxe_mmap.c
index bd812e00988ed32f5517ce952a0e2186c4678f87..d22431e3a9081f86ac00f7c5b560e95e9e42e476 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,
};