From nobody Mon Feb 9 00:42:09 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9C23C001DE for ; Wed, 2 Aug 2023 07:28:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232589AbjHBH20 (ORCPT ); Wed, 2 Aug 2023 03:28:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231351AbjHBH2W (ORCPT ); Wed, 2 Aug 2023 03:28:22 -0400 Received: from out28-135.mail.aliyun.com (out28-135.mail.aliyun.com [115.124.28.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56EE0EA for ; Wed, 2 Aug 2023 00:28:21 -0700 (PDT) X-Alimail-AntiSpam: AC=SUSPECT;BC=0.6037459|-1;BR=01201311R621b1;CH=blue;DM=|SUSPECT|false|;DS=CONTINUE|ham_alarm|0.161814-0.00328592-0.8349;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047193;MF=sunran001@208suo.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.U6biHA-_1690961293; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U6biHA-_1690961293) by smtp.aliyun-inc.com; Wed, 02 Aug 2023 15:28:15 +0800 From: Ran Sun To: alexander.deucher@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ran Sun Subject: [PATCH] drm/amdgpu: Clean up errors in amdgpu_ring.h Date: Wed, 2 Aug 2023 07:28:13 +0000 Message-Id: <20230802072813.13252-1-sunran001@208suo.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Fix the following errors reported by checkpatch: ERROR: spaces required around that ':' (ctx:VxW) Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h b/drivers/gpu/drm/amd= /amdgpu/amdgpu_ring.h index 028ff075db51..e2ab303ad270 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h @@ -389,7 +389,7 @@ static inline void amdgpu_ring_write_multiple(struct am= dgpu_ring *ring, occupied =3D ring->wptr & ring->buf_mask; dst =3D (void *)&ring->ring[occupied]; chunk1 =3D ring->buf_mask + 1 - occupied; - chunk1 =3D (chunk1 >=3D count_dw) ? count_dw: chunk1; + chunk1 =3D (chunk1 >=3D count_dw) ? count_dw : chunk1; chunk2 =3D count_dw - chunk1; chunk1 <<=3D 2; chunk2 <<=3D 2; --=20 2.17.1