From nobody Thu Sep 11 10:31:47 2025 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 1F454C001DF for ; Wed, 2 Aug 2023 07:56:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231490AbjHBH4T (ORCPT ); Wed, 2 Aug 2023 03:56:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232925AbjHBHzs (ORCPT ); Wed, 2 Aug 2023 03:55:48 -0400 Received: from out28-107.mail.aliyun.com (out28-107.mail.aliyun.com [115.124.28.107]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D778E213F for ; Wed, 2 Aug 2023 00:53:18 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.09949107|-1;CH=blue;DM=|OVERLOAD|false|;DS=CONTINUE|ham_system_inform|0.051677-0.00259581-0.945727;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047207;MF=sunran001@208suo.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.U6d9036_1690962790; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U6d9036_1690962790) by smtp.aliyun-inc.com; Wed, 02 Aug 2023 15:53:12 +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 vcn_v3_0.c Date: Wed, 2 Aug 2023 07:53:09 +0000 Message-Id: <20230802075309.13950-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: space required before the open brace '{' ERROR: "foo * bar" should be "foo *bar" ERROR: space required before the open parenthesis '(' ERROR: that open brace { should be on the previous line Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c b/drivers/gpu/drm/amd/am= dgpu/vcn_v3_0.c index b76ba21b5a89..1e7613bb80ae 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c @@ -1105,7 +1105,7 @@ static int vcn_v3_0_start(struct amdgpu_device *adev) if (adev->vcn.harvest_config & (1 << i)) continue; =20 - if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG){ + if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) { r =3D vcn_v3_0_start_dpg_mode(adev, i, adev->vcn.indirect_sram); continue; } @@ -1789,7 +1789,7 @@ static int vcn_v3_0_dec_msg(struct amdgpu_cs_parser *= p, struct amdgpu_job *job, struct amdgpu_bo *bo; uint64_t start, end; unsigned int i; - void * ptr; + void *ptr; int r; =20 addr &=3D AMDGPU_GMC_HOLE_MASK; @@ -2129,7 +2129,7 @@ static int vcn_v3_0_set_powergating_state(void *handl= e, return 0; } =20 - if(state =3D=3D adev->vcn.cur_state) + if (state =3D=3D adev->vcn.cur_state) return 0; =20 if (state =3D=3D AMD_PG_STATE_GATE) @@ -2137,7 +2137,7 @@ static int vcn_v3_0_set_powergating_state(void *handl= e, else ret =3D vcn_v3_0_start(adev); =20 - if(!ret) + if (!ret) adev->vcn.cur_state =3D state; =20 return ret; @@ -2228,8 +2228,7 @@ static const struct amd_ip_funcs vcn_v3_0_ip_funcs = =3D { .set_powergating_state =3D vcn_v3_0_set_powergating_state, }; =20 -const struct amdgpu_ip_block_version vcn_v3_0_ip_block =3D -{ +const struct amdgpu_ip_block_version vcn_v3_0_ip_block =3D { .type =3D AMD_IP_BLOCK_TYPE_VCN, .major =3D 3, .minor =3D 0, --=20 2.17.1