Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3262577rwb; Mon, 7 Aug 2023 10:32:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFV98DwMYujqmvD5yQvpcvRdbmV5DfMYZLKrpwcA+biBeNVB9JWI8Q/4+s0OJSNVzOxGRkE X-Received: by 2002:a17:90a:a66:b0:267:eda5:f7b5 with SMTP id o93-20020a17090a0a6600b00267eda5f7b5mr9998757pjo.47.1691429533237; Mon, 07 Aug 2023 10:32:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691429533; cv=none; d=google.com; s=arc-20160816; b=Qou7U1SxHXbmyCMDjkWL3f9c1HCxM5cHe20JaqpW47BEt4mmFl+EpqBsZzxpQtVlvy 8IbSi9y27T3B5zb5VaYAoNOwp8jhy23dlrN4Zw18/Wja8U7O1NFuJmeo3gPs1/QCckpT 2AIOU6ro1oIHslnx35M0Wp2NHneIi3t7wmICiLTzShmUcFr05DBTRRuSu/EdJANKlAgY JunPKDO1x1XF7mhQ4TUjCVFAQ5DYrrBW1woiItIehgDQ/MfhkPsl8bLvFViCoWdgjoiF NpOaf5HXfXtyWh+wIs96f6Lz+4w8O6ZcHMPZqxsXp7NExuzPltzIyeNaFT1HFEv0pHVZ GCeQ== 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=cgQa+1FKvDWzR4zoWEz8VexbuxihC5GZckb0Q0xRORc=; fh=t+hei0m6FWvWE3h8ROlSj5pw/xTY3yBXufxuldTsP1A=; b=poum/Xq4tuRWBCXP+DRYGwCyWLY6bNfAGOIsp1Uc1T2o0KJ1U7ap/0itnJ5dgQGagf aQn/4Ccyu/2Ww6V4y7FQ+h8m0UTekePe47W4WgMcT1JmgUux70zLCgivkXo4yC4741RP efRyS59idaEFYHltB4xDaECr/c908qK+jXdAAbkZIdSGirztgxJGpu8Xgqg6stbnEOfR eeMDT9YCwWFz1hR1+pSrBcKl4vfapqyVAlsjFEafV7rZpjoSoO1YAYBlmhaMR/HQULWN P/Ij+HYB0peT3UgP460TDu/TwOs3bWB7gEB2pV51Zy7JwXOg7TYpAQ4+Uoq+NY7OYmel famw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=FQTZy50g; 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 q1-20020a17090a4f8100b0026383536294si5912816pjh.175.2023.08.07.10.31.52; Mon, 07 Aug 2023 10:32:13 -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=FQTZy50g; 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 S231886AbjHGQt6 (ORCPT + 99 others); Mon, 7 Aug 2023 12:49:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230402AbjHGQt5 (ORCPT ); Mon, 7 Aug 2023 12:49:57 -0400 Received: from mail-oo1-xc30.google.com (mail-oo1-xc30.google.com [IPv6:2607:f8b0:4864:20::c30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A82589D for ; Mon, 7 Aug 2023 09:49:56 -0700 (PDT) Received: by mail-oo1-xc30.google.com with SMTP id 006d021491bc7-56d263da4f2so3403607eaf.0 for ; Mon, 07 Aug 2023 09:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691426996; x=1692031796; 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=cgQa+1FKvDWzR4zoWEz8VexbuxihC5GZckb0Q0xRORc=; b=FQTZy50gW5hiLnD/qVVaqF2n4OXGk9PzU4wck0u5FbLinIBT//IhILVvwwU3x9Rtm8 +lZXsAW2YkdkgV9Eexq3fUXpgofjnAkhuSbOVy80lx+5f8pszAh1xrUONZD6fRNpAhkw tg2bGo0vdY0sr4sqUMdlcduc+IBdahhv+QzitcQbsf6Bynaw6PhS3KmIJW11tT7SJDZh itWgPTtTILvwpUbcpW5S2f1V9S6MXwMftJYXay9qge47tFbJh35OPuk1uQadtSnKw15M KH8KSK7YoQopcH3HxcWRgt5SqTw1l7IPsmEH3yyKI1yZIL7LgFqzUZvcWF0sxxuqRV8Q Wy3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691426996; x=1692031796; 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=cgQa+1FKvDWzR4zoWEz8VexbuxihC5GZckb0Q0xRORc=; b=Z1JYAjsdivdMZvHNgx0PR9YL9hHTsh49g2Q2oVPHOrnveo5xzIFZEVkKbdDESK0DEO peK9+AHi3yHKCzWL5mcSjHSLgZXtW5S7fivTTsYQRItMg6MC7ofKcqD8+XxBCwQSXroW ST1AsFpl0MlwVIwbEsj9GU4R85J6Q6WcWf4fNHMBX32jy1QRcVzIGlJl+rlboZhQr0jx Jtc773t6sLfxHaenPsDmO1WKoHAaVlHNZ/beIHmjBeSt0Z7WDH5nSy+QAunnbkt6k25B 3ZKJRZ8dANhShGVh8G3tCbS/UZbSqEAMkX2HRk5Vmr//gxkzkSunulEYOueWY4+ua8nx LOuA== X-Gm-Message-State: AOJu0Yw6ymQUEnEVFUY3aAlUIGBtgvYUeKSxyCZaPP9pIHgtNLKkuLYM GAZp2pCptOFLoYF/g6bZxRfYiyn1tg+YqIg2bN0= X-Received: by 2002:a54:4e0d:0:b0:3a7:9837:7148 with SMTP id a13-20020a544e0d000000b003a798377148mr3848673oiy.58.1691426995953; Mon, 07 Aug 2023 09:49:55 -0700 (PDT) MIME-Version: 1.0 References: <20230801094443.7942-1-sunran001@208suo.com> In-Reply-To: <20230801094443.7942-1-sunran001@208suo.com> From: Alex Deucher Date: Mon, 7 Aug 2023 12:49:45 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/pm: Clean up errors in vega20_pptable.h To: Ran Sun Cc: alexander.deucher@amd.com, airlied@gmail.com, daniel@ffwll.ch, 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_BLOCKED,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 Tue, Aug 1, 2023 at 5:44=E2=80=AFAM Ran Sun wrote= : > > Fix the following errors reported by checkpatch: > > ERROR: open brace '{' following struct go on the same line > ERROR: space prohibited before open square bracket '[' > > Signed-off-by: Ran Sun > --- > .../amd/pm/powerplay/hwmgr/vega20_pptable.h | 19 ++++++++----------- > 1 file changed, 8 insertions(+), 11 deletions(-) > > diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_pptable.h b/dr= ivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_pptable.h > index 2222e29405c6..b468dddbefff 100644 > --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_pptable.h > +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_pptable.h > @@ -73,14 +73,13 @@ enum ATOM_VEGA20_ODSETTING_ID { > }; > typedef enum ATOM_VEGA20_ODSETTING_ID ATOM_VEGA20_ODSETTING_ID; > > -typedef struct _ATOM_VEGA20_OVERDRIVE8_RECORD > -{ > +typedef struct _ATOM_VEGA20_OVERDRIVE8_RECORD { > UCHAR ucODTableRevision; > ULONG ODFeatureCount; > - UCHAR ODFeatureCapabilities [ATOM_VEGA20_ODFEATURE_MAX_COUNT]; //OD = feature support flags > + UCHAR ODFeatureCapabilities[ATOM_VEGA20_ODFEATURE_MAX_COUNT]; //OD f= eature support flags > ULONG ODSettingCount; > - ULONG ODSettingsMax [ATOM_VEGA20_ODSETTING_MAX_COUNT]; //Upp= er Limit for each OD Setting > - ULONG ODSettingsMin [ATOM_VEGA20_ODSETTING_MAX_COUNT]; //Low= er Limit for each OD Setting > + ULONG ODSettingsMax[ATOM_VEGA20_ODSETTING_MAX_COUNT]; //Uppe= r Limit for each OD Setting > + ULONG ODSettingsMin[ATOM_VEGA20_ODSETTING_MAX_COUNT]; //Lowe= r Limit for each OD Setting > } ATOM_VEGA20_OVERDRIVE8_RECORD; > > enum ATOM_VEGA20_PPCLOCK_ID { > @@ -99,16 +98,14 @@ enum ATOM_VEGA20_PPCLOCK_ID { > }; > typedef enum ATOM_VEGA20_PPCLOCK_ID ATOM_VEGA20_PPCLOCK_ID; > > -typedef struct _ATOM_VEGA20_POWER_SAVING_CLOCK_RECORD > -{ > +typedef struct _ATOM_VEGA20_POWER_SAVING_CLOCK_RECORD { > UCHAR ucTableRevision; > ULONG PowerSavingClockCount; // Count = of PowerSavingClock Mode > - ULONG PowerSavingClockMax [ATOM_VEGA20_PPCLOCK_MAX_COUNT]; // Po= werSavingClock Mode Clock Maximum array In MHz > - ULONG PowerSavingClockMin [ATOM_VEGA20_PPCLOCK_MAX_COUNT]; // Po= werSavingClock Mode Clock Minimum array In MHz > + ULONG PowerSavingClockMax[ATOM_VEGA20_PPCLOCK_MAX_COUNT]; // Powe= rSavingClock Mode Clock Maximum array In MHz > + ULONG PowerSavingClockMin[ATOM_VEGA20_PPCLOCK_MAX_COUNT]; // Powe= rSavingClock Mode Clock Minimum array In MHz > } ATOM_VEGA20_POWER_SAVING_CLOCK_RECORD; > > -typedef struct _ATOM_VEGA20_POWERPLAYTABLE > -{ > +typedef struct _ATOM_VEGA20_POWERPLAYTABLE { > struct atom_common_table_header sHeader; > UCHAR ucTableRevision; > USHORT usTableSize; > -- > 2.17.1 >