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>
This commit is contained in:
Arvind Yadav 2017-08-28 09:59:28 +05:30 committed by Doug Ledford
parent 2d72d6c4ec
commit 733da3bcb3

View file

@ -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,
};