The patch titled Subject: mm/page_isolation: fix clang deadcode warning has been added to the -mm mm-hotfixes-unstable branch. Its filename is mm-page_isolation-fix-clang-deadcode-warning.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-page_isolation-fix-clang-deadcode-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: Maria Yu <quic_aiquny@xxxxxxxxxxx> 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@xxxxxxxxxxx Signed-off-by: Maria Yu <quic_aiquny@xxxxxxxxxxx> Cc: David Hildenbrand <david@xxxxxxxxxx> Cc: Doug Berger <opendmb@xxxxxxxxx> Cc: Mike Kravetz <mike.kravetz@xxxxxxxxxx> Cc: Zi Yan <ziy@xxxxxxxxxx> Cc: Matthew Wilcox <willy@xxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_isolation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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@xxxxxxxxxxx are mm-page_isolation-fix-clang-deadcode-warning.patch