From patchwork Fri Apr 6 09:24:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 10325801 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 9C39D60208 for ; Fri, 6 Apr 2018 09:24:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B842294BF for ; Fri, 6 Apr 2018 09:24:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F32A294C2; Fri, 6 Apr 2018 09:24:30 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham 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 EB299294BF for ; Fri, 6 Apr 2018 09:24:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 83BF16E0B6; Fri, 6 Apr 2018 09:24:28 +0000 (UTC) X-Original-To: Intel-gfx@lists.freedesktop.org Delivered-To: Intel-gfx@lists.freedesktop.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8A03C6E0B6 for ; Fri, 6 Apr 2018 09:24:27 +0000 (UTC) Received: by mail-wm0-x242.google.com with SMTP id r82so1955250wme.0 for ; Fri, 06 Apr 2018 02:24:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ursulin-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=hAvXEV+rc2DuYaZ0oxYuJ0NcrwUB0QMtjIh1ZyW8bWU=; b=GtHPMHeje3JhtO7m1tUPyBpxuyRRiWGSTLKmKW3wRPNEGEAtWhhkSYBDv3ALQCUJ2k RH17ILxShQUyZyFy2AedLD7SulGn6BByfU5nm8LcuCEqxOYHLq5ijwosCciyVpdJN3sp Wu9CtTYoXeLy/RAMAGlj8Zl7aSjUFfXmfnur69KLtK8nMR2NtfLf6FS96p8zV8lhJZXR XelvLKHHaTGeB887lVa1nOAr79nRsnyhoNAofDLiE9uRsgbMN3tyQu0oFlutzk+PemHn AkzB7IuONQgdKkoHcBzDVTlNZvpLKLszhtoX/FuBGDf14eVMq//TtdsCYDVLCEw+ax5M anCA== 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; bh=hAvXEV+rc2DuYaZ0oxYuJ0NcrwUB0QMtjIh1ZyW8bWU=; b=eFKDdPs/F1e0APT4hv6v6vruTTgoFQiWvWyrDRR+8PzijceV8me2sD3PqzH8HROkai Trog7o3k7cFJh2EWMqfvpu5iQn1vA/zw2wrTnnqt6e7sk4qRswnJlG+OfY/4KGSZlcRx 1o4istYOZxz6l1ppNciXezHveBzZx6EUTtoIZjen/wQ6ECyddpxgx2Z3hI9CFCS8OwPI R7WUvajTjfo+k4naczQO88EZzzIudn/ESKf7Y3XLHv2Sgmdng78V33LaWCqiIH7mEaMe vyDper7AGWk8W/KD7tw1w2byp4sJdipCRh8aRf59HN8PhAl96puAvb/s3z4tt1dGgr6Y B8VA== X-Gm-Message-State: AElRT7ENvFhSznmeAeCY1ntOncjGPvEIBwOXr3WMM/2cYh5NmbZUOR2N tMtaCIWMA6cSuGw3atjLNd6P0f5C X-Google-Smtp-Source: AIpwx49oeUk3F5IL6LfkTVhe7hbHdlVcEDCHyhKErzFBhTNTlqK6yfcZcDZHkCatZYoUNdQWWWhhRw== X-Received: by 10.28.91.65 with SMTP id p62mr14852288wmb.140.1523006666082; Fri, 06 Apr 2018 02:24:26 -0700 (PDT) Received: from localhost.localdomain ([95.146.144.186]) by smtp.gmail.com with ESMTPSA id m7sm345517wmc.0.2018.04.06.02.24.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Apr 2018 02:24:25 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: Intel-gfx@lists.freedesktop.org Date: Fri, 6 Apr 2018 10:24:17 +0100 Message-Id: <20180406092417.2466-1-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.14.1 Subject: [Intel-gfx] [PATCH] drm/i915: Enclose for_each_engine_masked macro arguments in parentheses 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: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Tvrtko Ursulin Enclose for_each_engine_masked macro arguments in parentheses. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_drv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 5373b171bb96..79dc715db26b 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -2149,8 +2149,8 @@ static inline struct drm_i915_private *huc_to_i915(struct intel_huc *huc) /* Iterator over subset of engines selected by mask */ #define for_each_engine_masked(engine__, dev_priv__, mask__, tmp__) \ - for (tmp__ = mask__ & INTEL_INFO(dev_priv__)->ring_mask; \ - tmp__ ? (engine__ = (dev_priv__)->engine[__mask_next_bit(tmp__)]), 1 : 0; ) + for ((tmp__) = (mask__) & INTEL_INFO(dev_priv__)->ring_mask; \ + (tmp__) ? ((engine__) = (dev_priv__)->engine[__mask_next_bit(tmp__)]), 1 : 0; ) enum hdmi_force_audio { HDMI_AUDIO_OFF_DVI = -2, /* no aux data for HDMI-DVI converter */