summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-28 09:59:28 +0530
committerDoug Ledford <dledford@redhat.com>2017-08-28 19:12:25 -0400
commit733da3bcb3a1293fab1e7703982540dde847d716 (patch)
tree7aa461b4c8937eda51c71aa2022891cf78c94e9a /drivers/infiniband
parent2d72d6c4ec1e3761e8cfc69d58d498b2dbe46341 (diff)
downloadlinux-733da3bcb3a1293fab1e7703982540dde847d716.tar.bz2
IB/hfi1: constify vm_operations_struct
vm_operations_struct are not supposed to change at runtime. vm_area_struct structure working with const vm_operations_struct. So mark the non-const vm_operations_struct structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/hfi1/file_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hfi1/file_ops.c b/drivers/infiniband/hw/hfi1/file_ops.c
index e0fd8fc0a7ab..d893582e4450 100644
--- a/drivers/infiniband/hw/hfi1/file_ops.c
+++ b/drivers/infiniband/hw/hfi1/file_ops.c
@@ -120,7 +120,7 @@ static const struct file_operations hfi1_file_ops = {
.llseek = noop_llseek,
};
-static struct vm_operations_struct vm_ops = {
+static const struct vm_operations_struct vm_ops = {
.fault = vma_fault,
};