The patch titled Subject: mm/compaction.c: fix warning of 'flags' may be used uninitialized has been added to the -mm tree. Its filename is mm-compaction-fix-warning-of-flags-may-be-used-uninitialized.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-compaction-fix-warning-of-flags-may-be-used-uninitialized.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-compaction-fix-warning-of-flags-may-be-used-uninitialized.patch 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/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Xiubo Li <Li.Xiubo@xxxxxxxxxxxxx> Subject: mm/compaction.c: fix warning of 'flags' may be used uninitialized C mm/compaction.o mm/compaction.c: In function isolate_freepages_block: mm/compaction.c:364:37: warning: flags may be used uninitialized in this function [-Wmaybe-uninitialized] && compact_unlock_should_abort(&cc->zone->lock, flags, ^ Signed-off-by: Xiubo Li <Li.Xiubo@xxxxxxxxxxxxx> Cc: Vlastimil Babka <vbabka@xxxxxxx> Cc: Mel Gorman <mgorman@xxxxxxx> Cc: David Rientjes <rientjes@xxxxxxxxxx> Cc: Minchan Kim <minchan@xxxxxxxxxx> Cc: Arnd Bergmann <arnd@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/compaction.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN mm/compaction.c~mm-compaction-fix-warning-of-flags-may-be-used-uninitialized mm/compaction.c --- a/mm/compaction.c~mm-compaction-fix-warning-of-flags-may-be-used-uninitialized +++ a/mm/compaction.c @@ -344,7 +344,7 @@ static unsigned long isolate_freepages_b { int nr_scanned = 0, total_isolated = 0; struct page *cursor, *valid_page = NULL; - unsigned long flags; + unsigned long flags = 0; bool locked = false; unsigned long blockpfn = *start_pfn; @@ -573,7 +573,7 @@ isolate_migratepages_block(struct compac unsigned long nr_scanned = 0, nr_isolated = 0; struct list_head *migratelist = &cc->migratepages; struct lruvec *lruvec; - unsigned long flags; + unsigned long flags = 0; bool locked = false; struct page *page = NULL, *valid_page = NULL; _ Patches currently in -mm which might be from Li.Xiubo@xxxxxxxxxxxxx are mm-compaction-fix-warning-of-flags-may-be-used-uninitialized.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html