Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6864383ybi; Wed, 31 Jul 2019 23:17:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzS4fQ7hMNOM3h9uxBhF9bGJIFx9w6IsrQvHf8YWUR++Hhtm++1rH8TF+ZIDGxiOP+sDdJ5 X-Received: by 2002:aa7:9513:: with SMTP id b19mr51577600pfp.30.1564640253972; Wed, 31 Jul 2019 23:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564640253; cv=none; d=google.com; s=arc-20160816; b=PPBah7rGQZ4ilUf68niDUPRJzRcmQxqxH1T73B5msNogeJE9dEsNwEXg4Cvno/qPpP dh0Dg9XvsO/LW4578U5wnLvEbF/zCQii3ZBMR835YQ1zcbb/VhD9Y4OC2pCA0d0lz05v HLVfuiHnqhMsk5o7Fy8iy0Nht6Z+EYb84KNc/h6swJ8yEXXV1B/ZUE2GhE4HnIJxE4B1 NSllCVHSgQrUjfnU3P7l4rHlX839KWdjx01jGbFzn8y2yv1wziSsfMh+wCs51aEThUTu 1frCKz9QL/poRj8MjWHnyF3D/KrTsNO31V/aqhaM8XeRNlSG0jIOgJCvOkZCWwRcl/em B4Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=AxiACL1WUfx7ds/99ObRGR080gAuImg6qkWHGKrOE9U=; b=I7Ro4ldx73gYFsvftlgkoLBxHxQ3YDg+Me3mEKV+FPkPxfYG7RR2ZZ8mCoZo37QaKQ hqXN6iNZ7RcNpU/AgIn1zLpsutVkD4jnTGFuSXSWq4aWXZPmD3Wsh7r/ojXwbI1s4yQn SOMDUrRMRWCT/L3hhoymBbJGO0lbIi7Zxgc52cz5CUTseQjODTqwfNP2wN97ijyPScf8 OU8D9mM6bUeszC2IF85oTUTYc9skHOnNqHxPuxRk8ioDo3OZnOeYl6XXPsE/m3RiT+8o HDfjSEx2kKZpiMbVRiFxfcWm+NbI+QE8v66fOfjbuXo43nBZUJ5s/Wv3q+YAL659qzm7 ua0g== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s11si31927201pgm.412.2019.07.31.23.17.19; Wed, 31 Jul 2019 23:17:33 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729603AbfHAGPb (ORCPT + 99 others); Thu, 1 Aug 2019 02:15:31 -0400 Received: from mx2.suse.de ([195.135.220.15]:38962 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726783AbfHAGPb (ORCPT ); Thu, 1 Aug 2019 02:15:31 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 0985EAEBD; Thu, 1 Aug 2019 06:15:30 +0000 (UTC) Date: Thu, 1 Aug 2019 08:15:28 +0200 From: Michal Hocko To: Stephen Rothwell Cc: Miles Chen , Andrew Morton , Linux Next Mailing List , Linux Kernel Mailing List , Qian Cai Subject: Re: linux-next: build warning after merge of the akpm-current tree Message-ID: <20190801061527.GB11627@dhcp22.suse.cz> References: <20190731161151.26ef081e@canb.auug.org.au> <1564554484.28000.3.camel@mtkswgap22> <20190801155130.29a07b1b@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190801155130.29a07b1b@canb.auug.org.au> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Qian has already posted a patch http://lkml.kernel.org/r/1564580753-17531-1-git-send-email-cai@lca.pw -- Michal Hocko SUSE Labs