const: mark struct vm_struct_operations
* mark struct vm_area_struct::vm_ops as const * mark vm_ops in AGP code But leave TTM code alone, something is fishy there with global vm_ops being used. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
6f5071020d
commit
f0f37e2f77
@@ -95,7 +95,7 @@ static void ehca_mm_close(struct vm_area_struct *vma)
|
||||
vma->vm_start, vma->vm_end, *count);
|
||||
}
|
||||
|
||||
static struct vm_operations_struct vm_ops = {
|
||||
static const struct vm_operations_struct vm_ops = {
|
||||
.open = ehca_mm_open,
|
||||
.close = ehca_mm_close,
|
||||
};
|
||||
|
@@ -1151,7 +1151,7 @@ static int ipath_file_vma_fault(struct vm_area_struct *vma,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct vm_operations_struct ipath_file_vm_ops = {
|
||||
static const struct vm_operations_struct ipath_file_vm_ops = {
|
||||
.fault = ipath_file_vma_fault,
|
||||
};
|
||||
|
||||
|
@@ -74,7 +74,7 @@ static void ipath_vma_close(struct vm_area_struct *vma)
|
||||
kref_put(&ip->ref, ipath_release_mmap_info);
|
||||
}
|
||||
|
||||
static struct vm_operations_struct ipath_vm_ops = {
|
||||
static const struct vm_operations_struct ipath_vm_ops = {
|
||||
.open = ipath_vma_open,
|
||||
.close = ipath_vma_close,
|
||||
};
|
||||
|
Reference in New Issue
Block a user