[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221018140236.f55b76d77f5b872edf9bfdce@linux-foundation.org>
Date: Tue, 18 Oct 2022 14:02:36 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: kernel test robot <lkp@...el.com>
Cc: ntfs3@...ts.linux.dev, linux-mm@...ck.org,
linux-ext4@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
jfs-discussion@...ts.sourceforge.net,
Liam Howlett <liam.howlett@...cle.com>
Subject: Re: [linux-next:master] BUILD REGRESSION
4ca786ae6681b90b0ec3f4c55c89d12f835f8944
On Tue, 18 Oct 2022 23:45:39 +0800 kernel test robot <lkp@...el.com> wrote:
> tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> branch HEAD: 4ca786ae6681b90b0ec3f4c55c89d12f835f8944 Add linux-next specific files for 20221018
>
> ...
>
> mm/mmap.c:802 __vma_adjust() error: uninitialized symbol 'next_next'.
>
The code's OK but I guess we should make this warning go away.
--- a/mm/mmap.c~a
+++ a/mm/mmap.c
@@ -618,7 +618,8 @@ int __vma_adjust(struct vm_area_struct *
struct vm_area_struct *expand)
{
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 address_space *mapping = NULL;
struct rb_root_cached *root = NULL;
_
Powered by blists - more mailing lists