diff options
| author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2015-09-09 18:39:26 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-10 16:29:01 -0400 |
| commit | 7cbea8dc0127a95226c7722a738ac6534950ef67 (patch) | |
| tree | f62735c2bb1e523ba3d65051967ecc1228742981 /drivers/android | |
| parent | 2a78b857d3755a6f8d0c70d7e365e473925987c1 (diff) | |
mm: mark most vm_operations_struct const
With two exceptions (drm/qxl and drm/radeon) all vm_operations_struct
structs should be constant.
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/android')
| -rw-r--r-- | drivers/android/binder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/android/binder.c b/drivers/android/binder.c index 6607f3c6ace1..a39e85f9efa9 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c | |||
| @@ -2834,7 +2834,7 @@ static int binder_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf) | |||
| 2834 | return VM_FAULT_SIGBUS; | 2834 | return VM_FAULT_SIGBUS; |
| 2835 | } | 2835 | } |
| 2836 | 2836 | ||
| 2837 | static struct vm_operations_struct binder_vm_ops = { | 2837 | static const struct vm_operations_struct binder_vm_ops = { |
| 2838 | .open = binder_vma_open, | 2838 | .open = binder_vma_open, |
| 2839 | .close = binder_vma_close, | 2839 | .close = binder_vma_close, |
| 2840 | .fault = binder_vm_fault, | 2840 | .fault = binder_vm_fault, |
