All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged mm-hotfixes-stable] mm-page_isolation-fix-clang-deadcode-warning.patch removed from -mm tree
@ 2022-10-28 21:07 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-10-28 21:07 UTC (permalink / raw)
  To: mm-commits, ziy, willy, opendmb, mike.kravetz, david, quic_aiquny,
	akpm


The quilt patch titled
     Subject: mm/page_isolation: fix clang deadcode warning
has been removed from the -mm tree.  Its filename was
     mm-page_isolation-fix-clang-deadcode-warning.patch

This patch was dropped because it was merged into the mm-hotfixes-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Maria Yu <quic_aiquny@quicinc.com>
Subject: mm/page_isolation: fix clang deadcode warning
Date: Fri, 21 Oct 2022 18:15:55 +0800

When !CONFIG_VM_BUG_ON, there is warning of
clang-analyzer-deadcode.DeadStores:
Value stored to 'mt' during its initialization is never read.

Link: https://lkml.kernel.org/r/20221021101555.7992-2-quic_aiquny@quicinc.com
Signed-off-by: Maria Yu <quic_aiquny@quicinc.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Doug Berger <opendmb@gmail.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Zi Yan <ziy@nvidia.com>
Cc: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---


--- a/mm/page_isolation.c~mm-page_isolation-fix-clang-deadcode-warning
+++ a/mm/page_isolation.c
@@ -330,7 +330,7 @@ static int isolate_single_pageblock(unsi
 				      zone->zone_start_pfn);
 
 	if (skip_isolation) {
-		int mt = get_pageblock_migratetype(pfn_to_page(isolate_pageblock));
+		int mt __maybe_unused = get_pageblock_migratetype(pfn_to_page(isolate_pageblock));
 
 		VM_BUG_ON(!is_migrate_isolate(mt));
 	} else {
_

Patches currently in -mm which might be from quic_aiquny@quicinc.com are



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-28 21:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-28 21:07 [merged mm-hotfixes-stable] mm-page_isolation-fix-clang-deadcode-warning.patch removed from -mm tree 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.