提交 733da3bc 编写于 作者: A Arvind Yadav 提交者: 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: NArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: NDoug Ledford <dledford@redhat.com>
上级 2d72d6c4
...@@ -120,7 +120,7 @@ static const struct file_operations hfi1_file_ops = { ...@@ -120,7 +120,7 @@ static const struct file_operations hfi1_file_ops = {
.llseek = noop_llseek, .llseek = noop_llseek,
}; };
static struct vm_operations_struct vm_ops = { static const struct vm_operations_struct vm_ops = {
.fault = vma_fault, .fault = vma_fault,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册