From nobody Sun Feb 8 19:55:45 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 9F37FC001DE for ; Tue, 1 Aug 2023 01:26:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231328AbjHAB0W (ORCPT ); Mon, 31 Jul 2023 21:26:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230155AbjHAB0U (ORCPT ); Mon, 31 Jul 2023 21:26:20 -0400 Received: from out28-218.mail.aliyun.com (out28-218.mail.aliyun.com [115.124.28.218]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEB3210D; Mon, 31 Jul 2023 18:26:18 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07736829|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0982606-0.000258943-0.90148;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047203;MF=sunran001@208suo.com;NM=1;PH=DS;RN=8;RT=8;SR=0;TI=SMTPD_---.U5CBZxW_1690853169; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U5CBZxW_1690853169) by smtp.aliyun-inc.com; Tue, 01 Aug 2023 09:26:12 +0800 From: Ran Sun To: apw@canonical.com, joe@perches.com, alexander.deucher@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Ran Sun Subject: [PATCH] drm/amd/pm: Clean up errors in smu_v13_0_7_ppt.c Date: Tue, 1 Aug 2023 01:26:08 +0000 Message-Id: <20230801012608.4003-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: open brace '{' following struct go on the same line ERROR: spaces required around that '=3D' (ctx:VxW) ERROR: that open brace { should be on the previous line Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c b/drivers= /gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c index b1f0937ccade..26ba51ec0567 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c @@ -386,8 +386,7 @@ static int smu_v13_0_7_check_fw_status(struct smu_conte= xt *smu) } =20 #ifndef atom_smc_dpm_info_table_13_0_7 -struct atom_smc_dpm_info_table_13_0_7 -{ +struct atom_smc_dpm_info_table_13_0_7 { struct atom_common_table_header table_header; BoardTable_t BoardTable; }; @@ -494,7 +493,7 @@ static int smu_v13_0_7_tables_init(struct smu_context *= smu) PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); SMU_TABLE_INIT(tables, SMU_TABLE_ACTIVITY_MONITOR_COEFF, sizeof(DpmActivityMonitorCoeffIntExternal_t), PAGE_SIZE, - AMDGPU_GEM_DOMAIN_VRAM); + AMDGPU_GEM_DOMAIN_VRAM); SMU_TABLE_INIT(tables, SMU_TABLE_COMBO_PPTABLE, MP0_MP1_DATA_REGION_SIZE_= COMBOPPTABLE, PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); =20 @@ -728,7 +727,7 @@ static int smu_v13_0_7_get_smu_metrics_data(struct smu_= context *smu, MetricsMember_t member, uint32_t *value) { - struct smu_table_context *smu_table=3D &smu->smu_table; + struct smu_table_context *smu_table =3D &smu->smu_table; SmuMetrics_t *metrics =3D &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics); int ret =3D 0; @@ -1635,8 +1634,7 @@ static int smu_v13_0_7_force_clk_levels(struct smu_co= ntext *smu, return ret; } =20 -static const struct smu_temperature_range smu13_thermal_policy[] =3D -{ +static const struct smu_temperature_range smu13_thermal_policy[] =3D { {-273150, 99000, 99000, -273150, 99000, 99000, -273150, 99000, 99000}, { 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000}, }; --=20 2.17.1