Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp474810ybc; Tue, 19 Nov 2019 04:27:41 -0800 (PST) X-Google-Smtp-Source: APXvYqzHrkiWFbnLee09YgpHbHOC3x0WIgbS+FBfA15nMCS/bNteAOXyJxPUp+qjJ+zHM4v8qvJq X-Received: by 2002:a17:906:7812:: with SMTP id u18mr3625231ejm.6.1574166461506; Tue, 19 Nov 2019 04:27:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574166461; cv=none; d=google.com; s=arc-20160816; b=CZ1gtLNNa5U8qnAKfUFlCXAUSVjACgk3YY7eaSbLG6idFx4T4Oy/mvqXL6u3UYMyQG rL8aM8eMzIgYhql5IUizSesxsE1wU4kIpSguOZFsr2eyXWTizBgZQ+hSuoecvbCLZHK9 aTOdk4+JfrHo+lQs0il+LO/GiF6r4CkFT/z48OnP5IbptY9vPbyKLKcjCwUrpK7GctqP vQA9V/PXQTdNZVYg3mR975k9DPbc4hfXxtKO2dsYhkk1ZuacfZ+GCE55RUZiPJzVg1/q lYtvgGFKl1NggJMIr1svWMx7GsS+j9DNaOYJmXrkNK3Z3UrtLs2laD8THb3EwTAxAGxk ZTrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qtbrpv9SQIeKrMo5YMfgOSHQ5K7he7JaqL1SHzOgo9Q=; b=y2L911HRkOoS4dT5wbBg3r0Uds2mi3p089V5oDlJEUcKZX/K96q+axElp9K5fzeYK6 YHG1sI/fO/SqjQL+KYw8og7JuVQk1tkoItF3M7yCoRSzhPln35/yzdRqKNi6hVAsCzRa e1vYY6VnMC1z7ZHbtoIcKkJhi+s9cjEo+aCFzhLeEqDfrT+DBb8XUbi+7aXwgkNK6I78 vhdgJ1Id2/0S7tlz1/frOSOTMapN8MQ42idL14HEqivwILgnBtDRmbYx4xGWEIRy7PSz 4shWXl//0hGtf650/LPwT/k1i7OVoYik8SWKZHEnCJqMh5+iWBFx+LGWp1NaSstpDsV+ ISAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q22si13530744ejx.69.2019.11.19.04.27.17; Tue, 19 Nov 2019 04:27:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728145AbfKSMZE (ORCPT + 99 others); Tue, 19 Nov 2019 07:25:04 -0500 Received: from out30-42.freemail.mail.aliyun.com ([115.124.30.42]:43746 "EHLO out30-42.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727351AbfKSMZE (ORCPT ); Tue, 19 Nov 2019 07:25:04 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=14;SR=0;TI=SMTPD_---0TiZ7z2i_1574166245; Received: from localhost(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0TiZ7z2i_1574166245) by smtp.aliyun-inc.com(127.0.0.1); Tue, 19 Nov 2019 20:24:05 +0800 From: Alex Shi To: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, mgorman@techsingularity.net, tj@kernel.org, hughd@google.com, khlebnikov@yandex-team.ru, daniel.m.jordan@oracle.com, yang.shi@linux.alibaba.com, willy@infradead.org, shakeelb@google.com, hannes@cmpxchg.org Cc: Alex Shi Subject: [PATCH v4 2/9] mm/huge_memory: fix uninitialized compiler warning Date: Tue, 19 Nov 2019 20:23:16 +0800 Message-Id: <1574166203-151975-3-git-send-email-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1574166203-151975-1-git-send-email-alex.shi@linux.alibaba.com> References: <1574166203-151975-1-git-send-email-alex.shi@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ../mm/huge_memory.c: In function ‘split_huge_page_to_list’: ../mm/huge_memory.c:2766:9: warning: ‘flags’ may be used uninitialized in this function [-Wmaybe-uninitialized] lruvec = lock_page_lruvec_irqsave(head, pgdata, flags); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Alex Shi Cc: Andrew Morton Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/huge_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 13cc93785006..4cdfdbeb6b2b 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -2699,7 +2699,7 @@ int split_huge_page_to_list(struct page *page, struct list_head *list) struct address_space *mapping = NULL; int count, mapcount, extra_pins, ret; bool mlocked; - unsigned long flags; + unsigned long flags = 0; pgoff_t end; VM_BUG_ON_PAGE(is_huge_zero_page(page), page); -- 1.8.3.1