Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2692715pxb; Sat, 30 Jan 2021 10:50:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJybL3Ys2fwqSkagtu6ZCaH2schdyHwXRvo6wBYX4wCRAUeK9t7mAvjOzcBMpzH6b9NRcXHi X-Received: by 2002:a17:907:2d09:: with SMTP id gs9mr3047057ejc.34.1612032658312; Sat, 30 Jan 2021 10:50:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612032658; cv=none; d=google.com; s=arc-20160816; b=Mtyijm3dvDFXb8eh7BF4F10NMI+i03LV2TE7kimpfr+1Tbe/1vDEZDtyVZaV2g1s00 BKmxMImfckfDXWyM47/CuV6NCrz73gFpWrFMbzCGf8mP4lM6GMeUxKJ0Dr5Yk2SNMWUa 0Jc6M9qQvXBClzNVdEBBxOqBFUkPjqRKrzdhFSHHT7e0b7SwWRfjKmYueR2eQly4MzXH TfhGHbxV62gYWcdK0gnZg9DSmQWeKiW51rDTdzchyyWJ2AoOk5Og//EU+3oW01uRdQYq Dn+oDvCYpI5IAF/SGhtyGioSW880xtoPcoKueq5bDj49dzehQcPDt/caXHKW81dpPrvG xoVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=qRL15Tbb9ZWBMvk05PrbFxsBzE+MxM4oxz/LQN7mByM=; b=Gzyk/AAVj+q3w6iBzKvDh+Xs0Dden3H5DzuV1Cj9Id6W8dWYoQeaDbU0DPJ4idhhVm WeBqRvq1kMR4uPsbk/J2n0UMWaxD4hQem/Ni5aE1n6CXST++8S54LFvP3K1KiqHD6EzJ mqpy3WHz7tQZH+RApn2cZBI/R8lAA4Razf/3p8oXeJPa5zsvkz1bPtR2YwF5tPBPf4gG rCgCeBjgMnH6HP2vtK5LaDZUTyB0c+RgwLGgcq+CEvRxOXDHDpHhTeeOcWGhHazLVtdK lCdnAt0Ng+I2i62soMhObzNDG0LSnSHIV47nxOvd/8i4k6LGKy+1/GjkBB67ZVFZjda4 nvMg== 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 s18si6992855ejr.353.2021.01.30.10.50.33; Sat, 30 Jan 2021 10:50:58 -0800 (PST) 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 S232136AbhA3Ssi (ORCPT + 99 others); Sat, 30 Jan 2021 13:48:38 -0500 Received: from smtprelay0250.hostedemail.com ([216.40.44.250]:46402 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230045AbhA3Ssf (ORCPT ); Sat, 30 Jan 2021 13:48:35 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id AB223181D303C; Sat, 30 Jan 2021 18:47:52 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:800:960:966:973:988:989:1260:1261:1277:1311:1313:1314:1345:1359:1437:1461:1515:1516:1518:1534:1543:1593:1594:1711:1730:1747:1777:1792:2196:2199:2393:2559:2562:2828:3138:3139:3140:3141:3142:3354:3622:3865:3867:3868:4321:4385:4605:5007:6119:7652:7903:10004:10400:10848:11026:11232:11473:11657:11658:11914:12043:12048:12296:12297:12438:12555:12740:12895:12986:13439:13894:13972:14181:14659:14721:21080:21433:21451:21627:21740:30029:30054:30056:30091,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: paint73_001571e275b3 X-Filterd-Recvd-Size: 4233 Received: from [192.168.1.159] (unknown [47.151.137.21]) (Authenticated sender: joe@perches.com) by omf11.hostedemail.com (Postfix) with ESMTPA; Sat, 30 Jan 2021 18:47:51 +0000 (UTC) Message-ID: <719e0f14852d132a6649dbd5791fca17f251cb8e.camel@perches.com> Subject: Re: [PATCH 10/29] drm/i915: Avoid comma separated statements 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 Date: Sat, 30 Jan 2021 10:47:50 -0800 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-08-24 at 21:56 -0700, Joe Perches wrote: > Use semicolons and braces. Ping? > 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); > ? }