Commit 1cd916d0 authored by Andrew Morton's avatar Andrew Morton

mm/mmap.c: __vma_adjust(): suppress uninitialized var warning

The code is OK, but it fools gcc.

mm/mmap.c:802 __vma_adjust() error: uninitialized symbol 'next_next'.

Fixes: 524e00b3 ("mm: remove rb tree.")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Cc: Liam R. Howlett <Liam.Howlett@Oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 5789151e
...@@ -618,7 +618,8 @@ int __vma_adjust(struct vm_area_struct *vma, unsigned long start, ...@@ -618,7 +618,8 @@ int __vma_adjust(struct vm_area_struct *vma, unsigned long start,
struct vm_area_struct *expand) struct vm_area_struct *expand)
{ {
struct mm_struct *mm = vma->vm_mm; struct mm_struct *mm = vma->vm_mm;
struct vm_area_struct *next_next, *next = find_vma(mm, vma->vm_end); struct vm_area_struct *next_next = NULL; /* uninit var warning */
struct vm_area_struct *next = find_vma(mm, vma->vm_end);
struct vm_area_struct *orig_vma = vma; struct vm_area_struct *orig_vma = vma;
struct address_space *mapping = NULL; struct address_space *mapping = NULL;
struct rb_root_cached *root = NULL; struct rb_root_cached *root = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment