Commit 733da3bc authored by Arvind Yadav's avatar Arvind Yadav Committed by Doug Ledford

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: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 2d72d6c4
......@@ -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,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment