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:

کامیت شده توسط
Linus Torvalds

والد
6f5071020d
کامیت
f0f37e2f77
@@ -1035,7 +1035,7 @@ static void mmap_user_close(struct vm_area_struct *vma)
|
||||
atomic_dec(&dispc.map_count[plane]);
|
||||
}
|
||||
|
||||
static struct vm_operations_struct mmap_user_ops = {
|
||||
static const struct vm_operations_struct mmap_user_ops = {
|
||||
.open = mmap_user_open,
|
||||
.close = mmap_user_close,
|
||||
};
|
||||
|
مرجع در شماره جدید
Block a user