Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp381535imm; Mon, 9 Jul 2018 03:38:28 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfNu13UnCA5HBRzR+ajZ+5hqvSp0YQ7q2Yv3Dq8vkWcFnrrOJNs75Tue8X8QpmSIPq2++CX X-Received: by 2002:a62:234a:: with SMTP id j71-v6mr20322647pfj.221.1531132708240; Mon, 09 Jul 2018 03:38:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531132708; cv=none; d=google.com; s=arc-20160816; b=Nqa4baVqERVi0juVGOnkzLs+HJqPY6NnbOImvle/80AHSZG4PBIzrji4Nb51lK7S5h gscd767SpUljbFQ+Ub70Q+Z7Y/B4hqqjZL4Sl6C/gNy0F6DOXMHyeeOqHpvSzFOoP1sU y3ejoCaR8hQtncwrGHonjAdPygdvycXRfzur8OYcM0CJqvX7ikAWWRKxKYTVuyLmCH08 nhCwxaqzaqCPuJUkxsVjbpg3HXWkm/9UTSOajY3+xapV5ljhn0zKbqn0YUNHreEU1ajA g7ma4JzzGkGTh4uRcdSEbspMJirbD0I+hBxp1OCruZrXpDunJ1HqMmjwVysjInO4DbF6 zdOg== 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:dkim-signature:arc-authentication-results; bh=boWSXLK+hte0o3FvjqL2u+rwepKvfPAc44lUihJTRYI=; b=gTFggrsj5RQH16lut+Z4QWr50VJlai+koTR5EOMV/Lblni2Ep1Mygv1E1l+VrDBUND LABHezLHTMMVmTxWeIn53Y5nH5nl8HQfTaQ+jpyGXYn84jaTMhKdVviTjRQTWi0eMoYT ktohSmn9CyTX36P4WocPXhVCVEYiUE6vu50x5g5n3Yf3MaTSNwTcc4/IQbJwPmuxDOM2 bhZ+hQBW33m5eXsOUi7pWzujZPGzgeyvT7LF6cC5NuU0N20+I9lihmBS4yygawcKLpTs sE6/KwEdTBKzZeMCljL7ESF1Is4j+s3oR9EEPnaOiM2gblOMtpS/UhJoOohTK98bs6hJ ZFMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=RZwNhOAc; 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 a14-v6si15873799plt.382.2018.07.09.03.38.13; Mon, 09 Jul 2018 03:38:28 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=RZwNhOAc; 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 S1754515AbeGIKhB (ORCPT + 99 others); Mon, 9 Jul 2018 06:37:01 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:54360 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754431AbeGIKhA (ORCPT ); Mon, 9 Jul 2018 06:37:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=boWSXLK+hte0o3FvjqL2u+rwepKvfPAc44lUihJTRYI=; b=RZwNhOAceCLKSYk2xMM9USkoJ POhSrX4ehjpFbDhf9BqtmimXTnW9jvJ5OsPDQPZ/0sG4hiMxxBhoVKfC0pV0ZNAUEjmYgVHbrnRHI tGR1U6V/McBY++h/EgXBP1Y1wGocW5b4VzXUGkq8m9bX2Lq5nym8fAM0vc4z+v9B1GUAalpSxynRZ rCKNhrcyi4m+L12629l9OHr/EPIoiDbJrb+uwcPa+3nbgZ4y7eTpO0usRSxvDAAQdE6Z11bONtDqC FMCW78/DKj2xk4xSYmajmp0XoeQ1IyRbBNChAaWf1cfhE0x3KKR5Bb4+R9ihYQebS+kowMIof/rU9 Zey8ghAOA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fcTXO-0006Tf-Th; Mon, 09 Jul 2018 10:36:59 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id DF1302029764D; Mon, 9 Jul 2018 12:36:56 +0200 (CEST) Date: Mon, 9 Jul 2018 12:36:56 +0200 From: Peter Zijlstra To: Daniel Vetter Cc: LKML , DRI Development , Intel Graphics Development , Daniel Vetter , Andrew Morton Subject: Re: [PATCH 11/12] sched: use for_each_if in topology.h Message-ID: <20180709103656.GH2476@hirez.programming.kicks-ass.net> References: <20180709083650.23549-1-daniel.vetter@ffwll.ch> <20180709083650.23549-11-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180709083650.23549-11-daniel.vetter@ffwll.ch> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 09, 2018 at 10:36:49AM +0200, Daniel Vetter wrote: > Avoids complaints from gcc about ambiguous else clauses. Is that a new thing? I'm fairly sure I've never seen it do that, > Signed-off-by: Daniel Vetter > Cc: Andrew Morton > Cc: Peter Zijlstra > --- > include/linux/topology.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/topology.h b/include/linux/topology.h > index cb0775e1ee4b..4fba5a5b148d 100644 > --- a/include/linux/topology.h > +++ b/include/linux/topology.h > @@ -40,7 +40,7 @@ > > #define for_each_node_with_cpus(node) \ > for_each_online_node(node) \ > - if (nr_cpus_node(node)) > + for_each_if (nr_cpus_node(node)) Not having gotten any of the other patches, I'm not really sure what this does and such, but improve readability it does not :/