Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6876687ybi; Wed, 31 Jul 2019 23:32:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAtWtZy/dKDnFQO9ns2tFNvxjISgmR/wOpzYFkohjqdqwwMew552bhBU2n3wykqcKTyXGF X-Received: by 2002:a17:90a:3086:: with SMTP id h6mr7007178pjb.14.1564641145148; Wed, 31 Jul 2019 23:32:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564641145; cv=none; d=google.com; s=arc-20160816; b=Jt6SWu3DN4bl0hy2lkbWzvgMEwx+8fO+/KwXkC4sYns1iuM4C9myZQ1mVzNNT5ltf5 Bko0vMoyHZu5G8MrTh8CVfFNMEK01XKVnbAc5NQPTtGHbcxu1UtIWaO+OD+qgRNGUNjs jp0OP4V02VkVhAXtKLyBFciCyXRaTrbq1BYYZpQK7zXnsUZTpN7I23b5sx86C0tBKQa8 lyPdE0KPkeTqKImxHej48Kea8Z+XCH16PPa3iok9z0rReLX5ctQkW5RE6GG86RCbBegM Kp4lA+NGIqg5c0KH2bpLvbfSvgpusMWN1eyFuikpZAFyVU5gPYlkjISTsjq4UKBbAvxY C6Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id; bh=CtnrIQgjIlDMgBzXc2eE+jRMAVhlslDmag2elkfZ9w0=; b=u4Wrh47bsbXzxZUNvTdbbBZ6w8FgzBzeqLOVq12+i2M2W5d9qcnlDuE6ZJ1zKSo2r3 ytf0WEzrPflw5unsdf4L7FwGrqerQ3ESSGt5hzD8+Vrxm1AARLbHElWggn3gYW/+NOky GaHWOFszmURvIhxRZ7rJQwbH0hpumY0NVoromfAQSqkb4iPXLug9x2ILitWvhu27jylB 9vBo68fRuJMdjiCiDJna5agIco6z/sZ4Hj3tdBA9Oz6l22z+/OYYkoVPcyHEtpFR5ufe wM7JJfnjE85V720KODFsoKfLHVWUE5373w2IriosnB1ciMmyV6YPJM0X+bs/sYCfobGS Vgjw== 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g31si30181464plb.241.2019.07.31.23.32.08; Wed, 31 Jul 2019 23:32:25 -0700 (PDT) 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729611AbfHAGaN (ORCPT + 99 others); Thu, 1 Aug 2019 02:30:13 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:33119 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726783AbfHAGaN (ORCPT ); Thu, 1 Aug 2019 02:30:13 -0400 X-UUID: b7ea4ece14aa45f9a7c142b33136ffbd-20190801 X-UUID: b7ea4ece14aa45f9a7c142b33136ffbd-20190801 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 361796521; Thu, 01 Aug 2019 14:30:03 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 1 Aug 2019 14:30:03 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 1 Aug 2019 14:30:04 +0800 Message-ID: <1564641003.25219.7.camel@mtkswgap22> Subject: Re: linux-next: build warning after merge of the akpm-current tree From: Miles Chen To: Michal Hocko CC: Stephen Rothwell , Andrew Morton , Linux Next Mailing List , Linux Kernel Mailing List , Qian Cai Date: Thu, 1 Aug 2019 14:30:03 +0800 In-Reply-To: <20190801061527.GB11627@dhcp22.suse.cz> References: <20190731161151.26ef081e@canb.auug.org.au> <1564554484.28000.3.camel@mtkswgap22> <20190801155130.29a07b1b@canb.auug.org.au> <20190801061527.GB11627@dhcp22.suse.cz> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-08-01 at 08:15 +0200, Michal Hocko wrote: > On Thu 01-08-19 15:51:30, Stephen Rothwell wrote: > > Hi Miles, > > > > On Wed, 31 Jul 2019 14:28:04 +0800 Miles Chen wrote: > > > > > > On Wed, 2019-07-31 at 16:11 +1000, Stephen Rothwell wrote: > > > > > > > > After merging the akpm-current tree, today's linux-next build (powerpc > > > > ppc64_defconfig) produced this warning: > > > > > > > > mm/memcontrol.c: In function 'invalidate_reclaim_iterators': > > > > mm/memcontrol.c:1160:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] > > > > } while (memcg = parent_mem_cgroup(memcg)); > > > > ^~~~~ > > > > > > > > > > Hi Stephen, > > > > > > Thanks for the telling me this. Sorry for the build warning. > > > Should I send patch v5 to the mailing list to fix this? > > > > You might as well (cc'ing Andrew, of course). > > > > I would suggest finishing that loop like this: > > > > memcg = parent_mem_cgroup(memcg); > > } while (memcg); > > > > rather than adding a set of parentheses. thanks for the advise > > Qian has already posted a patch http://lkml.kernel.org/r/1564580753-17531-1-git-send-email-cai@lca.pw Thanks Qian's quick fix. It's the first time that I receive a build warning after the patch has been merged to -mm tree. The build warning had been fixed by Qian, should I send another change for this?