Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3655496pxb; Mon, 1 Feb 2021 00:43:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJylsutjLRZoF5sry2NNjGgjsuC0Hx5gxum8wwQ8+4LeVqmsZHxoUVLnka0Bh5aAA9jjvyWj X-Received: by 2002:a05:6402:1a2a:: with SMTP id be10mr17543923edb.185.1612169024765; Mon, 01 Feb 2021 00:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612169024; cv=none; d=google.com; s=arc-20160816; b=rD1FTb9OHW+5MIB7YYm5EighEkvFnhBfEEpKWnVOKllZBuXFQphypNAiwTPwhnDxvC 6tWAwApGRsLGytJaEKtnMIIXnMDB5Ska8MJTE7mKCIqE/UI63e1G1KdVQfRYOy4LYTZH njdMgLdraHH7u9u5wNr3Yv8W2V8lIJQAZP8j4mMurFonaarEsYEfSDiyShqV+KR045BN iYRcssjH3Dvd2bWqgdWN67iRKgoyUfIuTLyAK8M3uPKL0Jo+QSKGm9z05x4NpFeWo5Jh kEPfMjA9EvmIzu7gkijctEr9S+q6hsBdinp/OGM8nlVHxWqZeS2rweHrz4AX1LUAeQ6U ZCzw== 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 :message-id:date:references:organization:in-reply-to:subject:cc:to :from:ironport-sdr:ironport-sdr; bh=nkDNoiugzA3Pw2VFZjNeryDARhciGfh/DAvm5P8MNEw=; b=jnL12Zpz0wAfvDoZqAB7pPG2K688wwH6MAqb44FdqLV+PHCabEQEII0FB6XKV3gvNq YarVgZNjLp8441XDVgKo1pnfYVzwb+aXGUx5wGVQWLbt01mgvM8ihGszTR9oPbIDvAd5 BW5Gdk37ZQvCsh7VNzlVKjysp2JNxICpXxt0nJg7GEXvxoX9GsIjLM24owXXxluROh8i NDaZvFFbOJJKyfoozAztUNc5QW5KtYQSVTTqoIwKdib3mCWbh0k8U8391a80P1aSUqFD zeT4fShc5p4ipwvgfHVWdA5x1zsvrD2hoASVsq56gjSR9nbz/oOaa3HcwPqkxBiaZz6f Nk2g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r30si3770441edi.324.2021.02.01.00.43.16; Mon, 01 Feb 2021 00:43:44 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232577AbhBAImK convert rfc822-to-8bit (ORCPT + 99 others); Mon, 1 Feb 2021 03:42:10 -0500 Received: from mga01.intel.com ([192.55.52.88]:61525 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229736AbhBAImJ (ORCPT ); Mon, 1 Feb 2021 03:42:09 -0500 IronPort-SDR: DFMCP1IVjXeJZxszkwuTab0loXnD0hI/hyiN14BRMPKC9jvWBxwDkPgEgU87sxZUzD+RrP5f/R //U9z+wx43MQ== X-IronPort-AV: E=McAfee;i="6000,8403,9881"; a="199544195" X-IronPort-AV: E=Sophos;i="5.79,392,1602572400"; d="scan'208";a="199544195" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2021 00:41:27 -0800 IronPort-SDR: D3F9IwH0PrxoCa/YmhD9O1i17haxEnaYFO7foNRaM3WtDszJ5pUmn4ZUnwn9oQdLU2cxuC14kX Hlve2jY67RoQ== X-IronPort-AV: E=Sophos;i="5.79,392,1602572400"; d="scan'208";a="369331898" Received: from wehmschu-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.52.115]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2021 00:41:24 -0800 From: Jani Nikula To: Joe Perches , Jiri Kosina , 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: Re: [PATCH 10/29] drm/i915: Avoid comma separated statements In-Reply-To: <719e0f14852d132a6649dbd5791fca17f251cb8e.camel@perches.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <719e0f14852d132a6649dbd5791fca17f251cb8e.camel@perches.com> Date: Mon, 01 Feb 2021 10:41:21 +0200 Message-ID: <875z3ci3im.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 30 Jan 2021, Joe Perches wrote: > On Mon, 2020-08-24 at 21:56 -0700, Joe Perches wrote: >> Use semicolons and braces. > > Ping? Seems to have fallen between the cracks. The first two hunks have been fixed, the last two are still there. Care to respin and rebase against drm-tip (or linux-next) please? BR, Jani. > >> 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); >>   } > > -- Jani Nikula, Intel Open Source Graphics Center