Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3221754rwb; Mon, 7 Aug 2023 09:58:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHOm2HX3aGo4hX/M12Tkm7D5yp21aO0nVAw8K8Gbq/45piKd/qAm9315mMfna1tHWW0a7Hk X-Received: by 2002:a17:90a:d792:b0:268:abc:83e4 with SMTP id z18-20020a17090ad79200b002680abc83e4mr7742559pju.26.1691427516373; Mon, 07 Aug 2023 09:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691427516; cv=none; d=google.com; s=arc-20160816; b=rsxwOt/PuGkR7KIQ25v/psTUHcdUEbPXR4hYeoQoO5d7m3OQPfwrrgVLKCSdLPGNge 8LhXS/VxmAshRH63J0l6Gyo+CwCwyxCWWSJjLZJz8M1nU2qB6Fh5h/WKqzc3tpX3SDcK yqeME6i4RuWsK/m0S3V0soBPuzpeKeRYkABZodGwXDdPrygdFoj1v/Fx3Z+197DJEgjR bhmzB7lMm+WaiqjfZARM5OFDRk7pOLq1GX7DIb3qx2ExkRuPD8Y/Bx7u0y3ApT6wrO+N X0UWSgcFhudCHAy/5VMnCT1gRSylqtbbzG0PrhmxmUhzJlMHeFEVa2xPqPvWLVm37+9+ R7WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ueDJCiGb0+VI2kQKDZzwR188POLai26iF4UpeUbxBio=; fh=tNhqgKcGqtrQKTL94yin4dSpunX59MawiTDHcbBm73E=; b=sKlePwpatSkSa8H3neWQlWIrcwddIBKukDCvm8X1GZBT2SGvsrfZCfuP3XxOeVOaf1 gvoY+gyopV0toMPm4I5650DigRORvCuYjuw4TpjoK+aLsKOXmtvlRUy7hhO9utk6wQaP fTqiLna6LnkJSZE63SiYgUfAzldhv3RLHobGkjupC2lU4s/XHK+mIh1+aNmQiknARbNt HYdvlQXifhHUb54wYxdmAOucnf3Uaek/jND0sOliIEU/pl1wC0igZ8BMrdup+0YBXE9w gckq8fSYFSJ9Vus2jihUaPG+rpuogwVUOreBDj+gDW5HoXoLEl3uuO7KGSk+iS0Nvjdj Sn6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=cEN+n13H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k1-20020a17090a9d8100b002680f4e8969si5883819pjp.95.2023.08.07.09.58.24; Mon, 07 Aug 2023 09:58:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=cEN+n13H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231436AbjHGQTd (ORCPT + 99 others); Mon, 7 Aug 2023 12:19:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231431AbjHGQTa (ORCPT ); Mon, 7 Aug 2023 12:19:30 -0400 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87D001715; Mon, 7 Aug 2023 09:19:26 -0700 (PDT) Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-6bca88c3487so3899269a34.2; Mon, 07 Aug 2023 09:19:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691425166; x=1692029966; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ueDJCiGb0+VI2kQKDZzwR188POLai26iF4UpeUbxBio=; b=cEN+n13HcILMDBD4BVySkhuM05g/mdSJjr5pgPn1UxGT7ofe7f8VJ+GSEB5Q9zRvHK PgZnDX6FKIZdfFhfe/9WZWb6hnsuIQg1yShCVdIhICq57+jKDxzd+TmFqcaWJVTQpWmx Lo/CnO1UrNaGmy3EZsrsyTVedNdGyCz8bEg9YzodMdLluNRn7r7HO7hd0csRsRedHjR6 LLy2SHBSZt4VxN5I5E44l/h7nXguFuzyK4G6ntJc3w/X3Lsep1DuEdPJlORqlNQLqKx5 INKus0QaQQLJyw/+zQLyB5Nz+guwfSNI5jOvZEFf+Rd4wXN/wk9V8bOW9Eu7cSCyO/eV FqSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691425166; x=1692029966; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ueDJCiGb0+VI2kQKDZzwR188POLai26iF4UpeUbxBio=; b=VOorkZ5e1+SlVREUoHGzqSfJ4jCheddz5X16oZMNbi3EAv3WxYliHB67UmURckWTI2 7e/5Tc0gX1+0KRpJwYv4ID5bumZp7MIH7uylndOjXUrKGKMSl+EyHPExwC1dMmbRHCkv FOYWWakdLPeIYnb29/5cUBFj8UG9TwpJ2s3NgH0mY8dTUSGVtCgysc3nhGKJK41WpZbN Kuce6goQ1aQ27zVsj1yjm2pmvxWk99a9SWAzQob8VN7I/ibajlTP7zllcospyoiEEA62 +eyWGvl+tNGWSoi2BUe5xehbbQUMsiWTuBIMr6t0d0nB354qJE9xsRi7CgLeAatRDUOS 6yfQ== X-Gm-Message-State: AOJu0YyFh5Jvr470Kxf24zsgTrEROyIsYf+6LtMHBPQ59hl7RG5SwsyT VyFTg6FEP6b7ZEVQ1FwLWyXcpmkigTAcLDjxxnU= X-Received: by 2002:a05:6870:c20d:b0:1be:d522:fdf with SMTP id z13-20020a056870c20d00b001bed5220fdfmr10569352oae.12.1691425165703; Mon, 07 Aug 2023 09:19:25 -0700 (PDT) MIME-Version: 1.0 References: <20230801012608.4003-1-sunran001@208suo.com> In-Reply-To: <20230801012608.4003-1-sunran001@208suo.com> From: Alex Deucher Date: Mon, 7 Aug 2023 12:19:14 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/pm: Clean up errors in smu_v13_0_7_ppt.c To: Ran Sun Cc: apw@canonical.com, joe@perches.com, alexander.deucher@amd.com, bpf@vger.kernel.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! On Mon, Jul 31, 2023 at 9:26=E2=80=AFPM Ran Sun wrot= e: > > 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/drive= rs/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_con= text *smu) > } > > #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_REGI= ON_SIZE_COMBOPPTABLE, > PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); > > @@ -728,7 +727,7 @@ static int smu_v13_0_7_get_smu_metrics_data(struct sm= u_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))->S= muMetrics); > int ret =3D 0; > @@ -1635,8 +1634,7 @@ static int smu_v13_0_7_force_clk_levels(struct smu_= context *smu, > return ret; > } > > -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, 9= 9000}, > { 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000,= 120000}, > }; > -- > 2.17.1 >