* + mm-mmapc-__vma_adjust-suppress-unintialized-var-warning.patch added to mm-hotfixes-unstable branch
@ 2022-10-18 21:03 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-10-18 21:03 UTC (permalink / raw)
To: mm-commits, lkp, Liam.Howlett, akpm, akpm
The patch titled
Subject: mm/mmap.c: __vma_adjust(): suppress uninitialized var warning
has been added to the -mm mm-hotfixes-unstable branch. Its filename is
mm-mmapc-__vma_adjust-suppress-unintialized-var-warning.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-mmapc-__vma_adjust-suppress-unintialized-var-warning.patch
This patch will later appear in the mm-hotfixes-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Andrew Morton <akpm@linux-foundation.org>
Subject: mm/mmap.c: __vma_adjust(): suppress uninitialized var warning
Date: Tue Oct 18 01:57:37 PM PDT 2022
The code is OK, but it fools gcc.
mm/mmap.c:802 __vma_adjust() error: uninitialized symbol 'next_next'.
Fixes: 524e00b36e8c5 ("mm: remove rb tree.")
Reported-by: kernel test robot <lkp@intel.com>
Cc: Liam R. Howlett <Liam.Howlett@Oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/mmap.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/mm/mmap.c~mm-mmapc-__vma_adjust-suppress-unintialized-var-warning
+++ 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;
_
Patches currently in -mm which might be from akpm@linux-foundation.org are
mm-mmapc-__vma_adjust-suppress-unintialized-var-warning.patch
mm-hugetlb-convert-free_huge_page-to-folios-fix.patch
powerpc-ptrace-user_regset_copyin_ignore-always-returns-0-fix.patch
minmax-sanity-check-constant-bounds-when-clamping-checkpatch-fixes.patch
minmax-sanity-check-constant-bounds-when-clamping-checkpatch-fixes-fix.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-18 21:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-18 21:03 + mm-mmapc-__vma_adjust-suppress-unintialized-var-warning.patch added to mm-hotfixes-unstable branch Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.