From patchwork Mon Jul 9 08:36:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 10513943 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C0040603D7 for ; Mon, 9 Jul 2018 08:38:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ABE5B28A58 for ; Mon, 9 Jul 2018 08:38:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A040F28A5A; Mon, 9 Jul 2018 08:38:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 650C928A58 for ; Mon, 9 Jul 2018 08:38:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 27B816E409; Mon, 9 Jul 2018 08:37:19 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 121A56E3F2 for ; Mon, 9 Jul 2018 08:37:11 +0000 (UTC) Received: by mail-ed1-x52c.google.com with SMTP id r17-v6so13261998edo.13 for ; Mon, 09 Jul 2018 01:37:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=h3R7WZ+HofYjSA3zK0EEGW3hNyyVWNEoKXFdh+kA3n4=; b=shBrOeq5EmjrguSyfSjSB/S1hTB5hfymAGC/Z/Zhw0E0ahib40Y70QaMXPWAuybijH Q6grLM69xpdULfXrbjNjeYN96Ikouo/LpTfyUeTPVCzrwZrYnB8BiqPwqsIia8r7JgTw UGIBBXqOnTJrc0Ob1XecJGzwaRgXc2/osOi4s+tiR5lozrQERqlDRfAr88M2A/gH9shq SJp/41sWyZI6Fzyop4XGdpwRvzs+rXGims85GAPjRa4P0gPHKVrjf+fAY/AMSQ/K+3Jm Ebrdm01XpduZ6u7TzNOOu5vAGs0RtP3YdeKr+Dc3i+LTLkY1GNP6DFq4dfC23vRfLkg9 qBWg== X-Gm-Message-State: APt69E1C8jxnn63Ta6XPDd42URKiXoOCRXIBKggUdmmLX2iheD9hvDAM qkAsvUEhWd38E65kU8vb1l/7JA== X-Google-Smtp-Source: AAOMgpdDFj1yAJHTDVaHbPMA6olWmMDq6yY4ongqwSx41gP9JdcnFMHI8fKfgxVYkK6m34W0ZRZM0A== X-Received: by 2002:a50:b306:: with SMTP id q6-v6mr20728396edd.264.1531125429583; Mon, 09 Jul 2018 01:37:09 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:5628:0:496f:7dc5:66d7:a057]) by smtp.gmail.com with ESMTPSA id 8-v6sm340067edv.77.2018.07.09.01.37.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 01:37:08 -0700 (PDT) From: Daniel Vetter To: LKML Date: Mon, 9 Jul 2018 10:36:49 +0200 Message-Id: <20180709083650.23549-11-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180709083650.23549-1-daniel.vetter@ffwll.ch> References: <20180709083650.23549-1-daniel.vetter@ffwll.ch> Subject: [Intel-gfx] [PATCH 11/12] sched: use for_each_if in topology.h X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Zijlstra , Daniel Vetter , Intel Graphics Development , DRI Development , Daniel Vetter , Andrew Morton MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Avoids complaints from gcc about ambiguous else clauses. 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)) int arch_update_cpu_topology(void);