diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-28 09:59:28 +0530 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-08-28 19:12:25 -0400 |
commit | 733da3bcb3a1293fab1e7703982540dde847d716 (patch) | |
tree | 7aa461b4c8937eda51c71aa2022891cf78c94e9a /drivers | |
parent | 2d72d6c4ec1e3761e8cfc69d58d498b2dbe46341 (diff) | |
download | op-kernel-dev-733da3bcb3a1293fab1e7703982540dde847d716.zip op-kernel-dev-733da3bcb3a1293fab1e7703982540dde847d716.tar.gz |
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')
-rw-r--r-- | drivers/infiniband/hw/hfi1/file_ops.c | 2 |
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 e0fd8fc..d893582 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, }; |