summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorMaria Yu <quic_aiquny@quicinc.com>2022-10-21 12:15:55 +0200
committerAndrew Morton <akpm@linux-foundation.org>2022-10-28 22:37:22 +0200
commitfba4eaf93164a6a6eb3cc12a3391b06f6187aa20 (patch)
tree5c4458b68da7e8a7cd4437812a040e5852bc6c54 /mm
parentfs/ext4/super.c: remove unused `deprecated_msg' (diff)
downloadlinux-fba4eaf93164a6a6eb3cc12a3391b06f6187aa20.tar.xz
linux-fba4eaf93164a6a6eb3cc12a3391b06f6187aa20.zip
mm/page_isolation: fix clang deadcode warning
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>
Diffstat (limited to 'mm')
-rw-r--r--mm/page_isolation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_isolation.c b/mm/page_isolation.c
index 04141a9bea70..47fbc1696466 100644
--- a/mm/page_isolation.c
+++ b/mm/page_isolation.c
@@ -330,7 +330,7 @@ static int isolate_single_pageblock(unsigned long boundary_pfn, int flags,
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 {