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
@@ -309,7 +309,7 @@ static int spufs_mem_mmap_access(struct vm_area_struct *vma,
|
||||
return len;
|
||||
}
|
||||
|
||||
static struct vm_operations_struct spufs_mem_mmap_vmops = {
|
||||
static const struct vm_operations_struct spufs_mem_mmap_vmops = {
|
||||
.fault = spufs_mem_mmap_fault,
|
||||
.access = spufs_mem_mmap_access,
|
||||
};
|
||||
@@ -436,7 +436,7 @@ static int spufs_cntl_mmap_fault(struct vm_area_struct *vma,
|
||||
return spufs_ps_fault(vma, vmf, 0x4000, SPUFS_CNTL_MAP_SIZE);
|
||||
}
|
||||
|
||||
static struct vm_operations_struct spufs_cntl_mmap_vmops = {
|
||||
static const struct vm_operations_struct spufs_cntl_mmap_vmops = {
|
||||
.fault = spufs_cntl_mmap_fault,
|
||||
};
|
||||
|
||||
@@ -1143,7 +1143,7 @@ spufs_signal1_mmap_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
|
||||
#endif
|
||||
}
|
||||
|
||||
static struct vm_operations_struct spufs_signal1_mmap_vmops = {
|
||||
static const struct vm_operations_struct spufs_signal1_mmap_vmops = {
|
||||
.fault = spufs_signal1_mmap_fault,
|
||||
};
|
||||
|
||||
@@ -1279,7 +1279,7 @@ spufs_signal2_mmap_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
|
||||
#endif
|
||||
}
|
||||
|
||||
static struct vm_operations_struct spufs_signal2_mmap_vmops = {
|
||||
static const struct vm_operations_struct spufs_signal2_mmap_vmops = {
|
||||
.fault = spufs_signal2_mmap_fault,
|
||||
};
|
||||
|
||||
@@ -1397,7 +1397,7 @@ spufs_mss_mmap_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
|
||||
return spufs_ps_fault(vma, vmf, 0x0000, SPUFS_MSS_MAP_SIZE);
|
||||
}
|
||||
|
||||
static struct vm_operations_struct spufs_mss_mmap_vmops = {
|
||||
static const struct vm_operations_struct spufs_mss_mmap_vmops = {
|
||||
.fault = spufs_mss_mmap_fault,
|
||||
};
|
||||
|
||||
@@ -1458,7 +1458,7 @@ spufs_psmap_mmap_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
|
||||
return spufs_ps_fault(vma, vmf, 0x0000, SPUFS_PS_MAP_SIZE);
|
||||
}
|
||||
|
||||
static struct vm_operations_struct spufs_psmap_mmap_vmops = {
|
||||
static const struct vm_operations_struct spufs_psmap_mmap_vmops = {
|
||||
.fault = spufs_psmap_mmap_fault,
|
||||
};
|
||||
|
||||
@@ -1517,7 +1517,7 @@ spufs_mfc_mmap_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
|
||||
return spufs_ps_fault(vma, vmf, 0x3000, SPUFS_MFC_MAP_SIZE);
|
||||
}
|
||||
|
||||
static struct vm_operations_struct spufs_mfc_mmap_vmops = {
|
||||
static const struct vm_operations_struct spufs_mfc_mmap_vmops = {
|
||||
.fault = spufs_mfc_mmap_fault,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user