Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6848499ybi; Wed, 31 Jul 2019 23:00:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIT16LbmNdLyV+81BOjHpJlcPbrG5I6nhNFawNIUJFFkJEXrelqe9tZbCqU3bmkXSkBb3z X-Received: by 2002:a17:90a:fa18:: with SMTP id cm24mr6509040pjb.120.1564639250351; Wed, 31 Jul 2019 23:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564639250; cv=none; d=google.com; s=arc-20160816; b=KR+zfYqXWkf9OqWFH4y7nGeinNl3W/B1Pj9f/2aGPZBknlLDRBqBVi1sAD/LpBCzlT 2XmtYULwNsCx3DYa6XWbdXo081KJnj1DtvIwRG/NEf52buuHYGX5ROflCw1rBbKierTH ZP4bu6nebcCUBGenY0n+GSKZz47cOEBfM8H+pFOrR457NUFkqclsv1NQgeXXORLmttYg wfSpt0WXPA3hDZsQgQNuygFnCC2XiSipnN7l558PCmGfSe4rQSolkAi32K9sdgohQevE UM/+KdNpOn71Xkvn63O95cO0ZG76IeDeFLbP3TUwIFNe0a5QpNkK1s4VEoS65cRrnOAA erOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=gnBF7B5AiXUh1ROB0YqSZ/1N3lyooAWDEAL94D8zctI=; b=eW+9Jp7ZF4WVL0hUmc/LfuhOODXcZpqH97mvRajQPT7jLgV+KMauELmLe/tsrcqIUU umHFco8w1lLE45nJizz6TIdBZgkTCWKHW3hJZB8e1sMFHv3VDCox73D0WcusPsyahehz 9I+ab40pZT4IRdoWe0rzi/ZzEyArLLMEZ9yNs20giQbtGL5fqfdCuQr+ptaIU0EnOGMr heTtvC3E5NB6zInquj0pWXijbekR57YYgSWDHI3jWj3q4DKmx5IESmrTm6/jA3DRbT6C fnUt4VGTMcV9a5IjfGyBhyOb1bGFy/w99GlSc5N5Yh0i70gWIvc1gWG2+OUzCNxggfGP dgbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=BZlKvGge; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d27si20925198pgd.328.2019.07.31.23.00.35; Wed, 31 Jul 2019 23:00:50 -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; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=BZlKvGge; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727808AbfHAFve (ORCPT + 99 others); Thu, 1 Aug 2019 01:51:34 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:37867 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbfHAFve (ORCPT ); Thu, 1 Aug 2019 01:51:34 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 45zfYZ6r8Wz9sMr; Thu, 1 Aug 2019 15:51:30 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1564638691; bh=/62k792BfxFERGOmjoiYc7ClHGXD9/CJUmCUrtuFKLQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BZlKvGge7miwFMRP7xN0Ct+hIuT97ZrJJ+Haxw2NTVNq99G0bxa+Z8JcNBdYJy92m MyCMtRIDIN1+giKCxkn9WMNYkcdn2xKhcJjqXqIlUKlYh0ij4XAPRB73/FTqOBYQf0 Vf5qRXhqrKTi9l9Zne3XfMUqYZbZm4PsbfoliIic7DHUof8WyizE1ix6zoB8Iu8yPt V9b3d3miMhUhboY6J/y3nLg2FA+xrFxIDduze02Sn85BsVCzVa664F3KAcGFsg8iaw p2KtO1chCyRrBoDNBoOHOOAmDbC4ON1fdnz+DRPl6K5DwMqt8I/e5IkBm6PLZC8VNz gPPTFwGh7xxRg== Date: Thu, 1 Aug 2019 15:51:30 +1000 From: Stephen Rothwell To: Miles Chen Cc: Andrew Morton , Linux Next Mailing List , Linux Kernel Mailing List Subject: Re: linux-next: build warning after merge of the akpm-current tree Message-ID: <20190801155130.29a07b1b@canb.auug.org.au> In-Reply-To: <1564554484.28000.3.camel@mtkswgap22> References: <20190731161151.26ef081e@canb.auug.org.au> <1564554484.28000.3.camel@mtkswgap22> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/cn_2R/.2_9jSH7EOBRcRI.J"; protocol="application/pgp-signature"; micalg=pgp-sha256 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/cn_2R/.2_9jSH7EOBRcRI.J Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Miles, On Wed, 31 Jul 2019 14:28:04 +0800 Miles Chen wro= te: > > On Wed, 2019-07-31 at 16:11 +1000, Stephen Rothwell wrote: > >=20 > > After merging the akpm-current tree, today's linux-next build (powerpc > > ppc64_defconfig) produced this warning: > >=20 > > 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 =3D parent_mem_cgroup(memcg)); > > ^~~~~ > > =20 >=20 > Hi Stephen, >=20 > Thanks for the telling me this. Sorry for the build warning.=20 > Should I send patch v5 to the mailing list to fix this?=20 You might as well (cc'ing Andrew, of course). I would suggest finishing that loop like this: memcg =3D parent_mem_cgroup(memcg); } while (memcg); rather than adding a set of parentheses. --=20 Cheers, Stephen Rothwell --Sig_/cn_2R/.2_9jSH7EOBRcRI.J Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl1CfeIACgkQAVBC80lX 0GwQowf7BtHd6N/Ql7+u/YSYkputgNQzecVwhI/kvO5/6qYvqqJNRd2sRhcOs6kG wyZMwf1WJAd8wglrKjvdo0Ib1DXGSUwbYDAIX7QAWCjMetfCnGtGY3bf806rOOEc Q0ZSgMiuIqYd3JZ1aSCy8kQgQyDWO4BugZwxevrxkhKMhPeJTlL6FeODBOBqvk3s A0DcoZ9cKZr1gHfzY0qvy2X90hG+3y871kg7sVU0pRF45w8fjIjhNS9F3u9/li1p VxAEv+xl55NJFvMbbwqNCbjhoD5KjqnhLU7vGQMWh7vBs/AamfUTyQ1dAWCHgt00 G4laLXZuprNoceHSSicDZIX0ncB2Ig== =HXp9 -----END PGP SIGNATURE----- --Sig_/cn_2R/.2_9jSH7EOBRcRI.J--