Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2643752pxa; Mon, 24 Aug 2020 22:02:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvv+sjueTJAfk6fzGWVaESvOb63n2bqS3RlGMq9kgKXZg2TcFCLNMaFWIxMODbkCVoZwyM X-Received: by 2002:a17:906:1756:: with SMTP id d22mr8675937eje.29.1598331771632; Mon, 24 Aug 2020 22:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598331771; cv=none; d=google.com; s=arc-20160816; b=cl9G3SsP3JoKTye+TlPZYkYt4lZ7YE8VlD8MPAg9PtVXJ6+bsq1QfSwQI0zuEuN8Rq 2M0Cs6CDbFD52i438dZRU1VCm/4r9WUDbo62Uq6sjxEZon2tKX8vLfKylNONDBbW14Xh 0itOzTQLgg3JWIqGK+lxwgIzFJGpSdx2YenXXyZsDjc5dscpbE06HDVORHKlqapAWrQ2 H3BiQuVfpW8s9HCgshwxqWyae7yNVj/Gzf0L9481bEYnY2mntv/fHtoBea9Sj4WXetUr fE3HCMow0l0ZdXF8/toIwq14P1jgtuswdC5IPqseGPKv5pxKU4M4hYWN3deNUdLsMM1R nYdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=jKoRxtYiLfpNQkPvNpgs6GQhas79fjRA3ZSfIOZMitw=; b=uMBF4wLdEemXyi1+rE3crWhMi5nGxiQIfz6mHeJSU7GIMwfD4q+feyXX+CDG+vNAe7 A3NU723QgH7HWProGlX8LGiYLBFt96yzGOpTzCptjWop7xaeb1KZkcKH2RvkaEg31kcJ X2O9z62HFXlddugQWxY7dWryY1Ol3QDpeE4KD9ScHXFvNOtJY4VyXWnjuZNQzbGf7c2d VpZVwH7iEM/UtCM3jedqJUGS3wWIdwP5KIEbGI2JwXWbnXe6AvsfAcGoaKADh1qCVnxN C05oIMZZ1iYV45Z9NLcwsszH4IM1swpH+F7126+jn0lNuq8suSx3PFAalkQpOcu243Qd HLJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d11si4290251ejw.602.2020.08.24.22.02.28; Mon, 24 Aug 2020 22:02:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729022AbgHYE7A (ORCPT + 99 others); Tue, 25 Aug 2020 00:59:00 -0400 Received: from smtprelay0217.hostedemail.com ([216.40.44.217]:59196 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728715AbgHYE5D (ORCPT ); Tue, 25 Aug 2020 00:57:03 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id 7303412C8; Tue, 25 Aug 2020 04:57:01 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:541:800:960:966:973:988:989:1260:1311:1314:1345:1359:1437:1461:1515:1534:1542:1711:1730:1747:1777:1792:2196:2199:2393:2559:2562:3138:3139:3140:3141:3142:3353:3865:3867:3868:4321:4385:4605:5007:6119:6261:7903:10004:10848:11026:11473:11657:11658:11914:12043:12048:12296:12297:12438:12555:12895:12986:13894:13972:14181:14394:14721:21080:21433:21451:21627:21740:30029:30054:30056,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: tooth95_1d0aaa027059 X-Filterd-Recvd-Size: 3852 Received: from joe-laptop.perches.com (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf08.hostedemail.com (Postfix) with ESMTPA; Tue, 25 Aug 2020 04:56:58 +0000 (UTC) From: Joe Perches To: Jiri Kosina , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi Cc: David Airlie , Daniel Vetter , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/29] drm/i915: Avoid comma separated statements Date: Mon, 24 Aug 2020 21:56:07 -0700 Message-Id: X-Mailer: git-send-email 2.26.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use semicolons and braces. Signed-off-by: Joe Perches --- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 8 +++++--- drivers/gpu/drm/i915/gt/intel_gt_requests.c | 6 ++++-- drivers/gpu/drm/i915/gt/selftest_workarounds.c | 6 ++++-- drivers/gpu/drm/i915/intel_runtime_pm.c | 6 ++++-- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/gen8_ppgtt.c b/drivers/gpu/drm/i915/gt/gen8_ppgtt.c index 699125928272..114c13285ff1 100644 --- a/drivers/gpu/drm/i915/gt/gen8_ppgtt.c +++ b/drivers/gpu/drm/i915/gt/gen8_ppgtt.c @@ -323,10 +323,12 @@ static int __gen8_ppgtt_alloc(struct i915_address_space * const vm, } spin_lock(&pd->lock); - if (likely(!pd->entry[idx])) + if (likely(!pd->entry[idx])) { set_pd_entry(pd, idx, pt); - else - alloc = pt, pt = pd->entry[idx]; + } else { + alloc = pt; + pt = pd->entry[idx]; + } } if (lvl) { diff --git a/drivers/gpu/drm/i915/gt/intel_gt_requests.c b/drivers/gpu/drm/i915/gt/intel_gt_requests.c index 66fcbf9d0fdd..54408d0b5e6e 100644 --- a/drivers/gpu/drm/i915/gt/intel_gt_requests.c +++ b/drivers/gpu/drm/i915/gt/intel_gt_requests.c @@ -139,8 +139,10 @@ long intel_gt_retire_requests_timeout(struct intel_gt *gt, long timeout) LIST_HEAD(free); interruptible = true; - if (unlikely(timeout < 0)) - timeout = -timeout, interruptible = false; + if (unlikely(timeout < 0)) { + timeout = -timeout; + interruptible = false; + } flush_submission(gt, timeout); /* kick the ksoftirqd tasklets */ spin_lock(&timelines->lock); diff --git a/drivers/gpu/drm/i915/gt/selftest_workarounds.c b/drivers/gpu/drm/i915/gt/selftest_workarounds.c index febc9e6692ba..3e4cbeed20bd 100644 --- a/drivers/gpu/drm/i915/gt/selftest_workarounds.c +++ b/drivers/gpu/drm/i915/gt/selftest_workarounds.c @@ -521,8 +521,10 @@ static int check_dirty_whitelist(struct intel_context *ce) srm = MI_STORE_REGISTER_MEM; lrm = MI_LOAD_REGISTER_MEM; - if (INTEL_GEN(engine->i915) >= 8) - lrm++, srm++; + if (INTEL_GEN(engine->i915) >= 8) { + lrm++; + srm++; + } pr_debug("%s: Writing garbage to %x\n", engine->name, reg); diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c index 153ca9e65382..f498f1c80755 100644 --- a/drivers/gpu/drm/i915/intel_runtime_pm.c +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c @@ -201,8 +201,10 @@ __print_intel_runtime_pm_wakeref(struct drm_printer *p, unsigned long rep; rep = 1; - while (i + 1 < dbg->count && dbg->owners[i + 1] == stack) - rep++, i++; + while (i + 1 < dbg->count && dbg->owners[i + 1] == stack) { + rep++; + i++; + } __print_depot_stack(stack, buf, PAGE_SIZE, 2); drm_printf(p, "Wakeref x%lu taken at:\n%s", rep, buf); } -- 2.26.0