Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3699712rwo; Mon, 24 Jul 2023 15:30:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlEcmfZvpDq0JJmSsEUH6VMGujZZdmp/EsnZDzPq2D/Sl7Yg1i9HL3TIpiEwRyCEvUyqlFQ7 X-Received: by 2002:a17:903:18c:b0:1b6:6a14:3734 with SMTP id z12-20020a170903018c00b001b66a143734mr686876plg.29.1690237808206; Mon, 24 Jul 2023 15:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690237808; cv=none; d=google.com; s=arc-20160816; b=oyshe7IddsnV5Xy14SxAKWCsp3tFP7dxZic/fvoES0FvvG0rdxdbSB/xit2NP0Pn8k gMTl9bMQdJVHIhEGRczcJVVW75SwQosLywsxooM4FrBeHAxgo5Bh8RpXJj4NvYFME2GU 1UgYgqdjo8q4DAbhSp15XGN+kPmnjYzGamdy1SMSqyAI0QTbjXCXToydh7jRGOqfo69A vA2epgNS37xXqGsZVf0p38VQiwzu/XoYoYpOYE5q28EDi6ZlfmtX6E1vHIB66h6ZLcGj jVrZlomC4taUQL8mMLm76uiiaAfs162U9n8jZiJ2jE0QfgucTAJ3YOCdQS4N4HA/TTRY Ma7Q== 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=DKXXQoujPlp56Vu9MiAPxZJv9g2kLPe6/i7I5ujqsT4=; fh=5uMgb3FjuzEN2hx+/gHTXgNLDhaZ51PB3bSZEXlWkNo=; b=oQ3tCSVWCDY6MOp+LqQztg21RVa/M3VpTOIAOcJjpUUj3rVq/idt6zDDcOmgcOj9Xv zRP9SVDGAg/fFWRVZIqMSGSJVKQnqlvoGFWj7E+9sRs1a0JuiWpOwgv5VfApF0gNosOt 3s2jqiMAeKBPzaB5JydL5UmjAnmjEyWyVg7cQvSjQ2bEEup/C8KTHNxRgNW6Z7HmBKXz UczRpT+Zv7sGIlCqYGaeIogB4HrU66nDOtwDvMrmXlRKvta4I5TpGzkakaCwS5mjEWOC Oc9VRCFrmv/urPuamjJ/PTVzRuW6vLguvnIk3h5p8W1ItcWZQcsMycsWeRZ018tvQBp9 GvKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="HpWLr/ci"; 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 n12-20020a170903404c00b001b8a69660c1si1485334pla.88.2023.07.24.15.29.55; Mon, 24 Jul 2023 15:30:08 -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="HpWLr/ci"; 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 S231394AbjGXWAS (ORCPT + 99 others); Mon, 24 Jul 2023 18:00:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbjGXWAO (ORCPT ); Mon, 24 Jul 2023 18:00:14 -0400 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03C8F194 for ; Mon, 24 Jul 2023 14:59:54 -0700 (PDT) Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-6bb1ec7945dso1367431a34.0 for ; Mon, 24 Jul 2023 14:59:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690235993; x=1690840793; 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=DKXXQoujPlp56Vu9MiAPxZJv9g2kLPe6/i7I5ujqsT4=; b=HpWLr/cii57x0K56jdIMzaoYubGP5yAArPD4GGbZ7rg3c8zkWyPF8Jo1SZgFHVwYVw Q10GDz3c4jRYxaYxrzoKwaRBW6ocxi0//3MeEbBlMWoqGDzYc/ZaScvKLCD+h7vYIKuy +5RWO5r2eMOWYZDYhHqhtLF6s7eP6Rl+d3ohNAR0yumMY4jBrgKXilWKT8REFw7XZ4dC 8EwezNLdSPpLTftMmFJyiIj67aimFqCUzWU1DlI6RBjqtbQzXovDUgH9g9E3c7t1+bhN ueVsy+UqTF3/k/+7/98C7YJu0qq178s33y2w01scVgj4UC322mxmj9DpdUl6zjZ//sfN 2n1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690235993; x=1690840793; 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=DKXXQoujPlp56Vu9MiAPxZJv9g2kLPe6/i7I5ujqsT4=; b=NfnGqCGqA4NOE4pG27N5qnKiTuPztfK2pF8pDrQbJ1VvkvLLvcse+DusICTDM6BDQR 2lyzZG0oKlxk7kg8mjuiEpKFmE483fev3HscGiglY1IGzgJpTv6Sp/2RxpXgls04cY+A KeXtBGCsXdDi714ZsB1HHO5EcLs0QzbSquaNO3g3AdjNiYoIP2xUAUEPyY/bJttfyZjz YKS/lWPkELwrTQ+mIAcXq4JP7i953jAq95DHlJGTiEp3C8/GpqG/0XZ1KgZJ618RDJQP ROYhXb6LcmOiGziMXTyf6sFRZQJdDE+o7qX+faGYc84CGS7aTsxoaRXrKFMHBVMCNv0a hHqg== X-Gm-Message-State: ABy/qLamXp2EuobBH0JmYsP/oJO8p0LxtyigdEkP6PrL3OC9s99nAx6S yeYy8tr/cuqT09W/LNbnLv5bCih3hjVHdfhhJEA= X-Received: by 2002:a05:6830:4410:b0:6b7:2ef3:37aa with SMTP id q16-20020a056830441000b006b72ef337aamr463718otv.15.1690235993268; Mon, 24 Jul 2023 14:59:53 -0700 (PDT) MIME-Version: 1.0 References: <20230724090624.9699-1-xujianghui@cdjrlc.com> <5ce64e06635dbf038d73452098fd0163@208suo.com> In-Reply-To: <5ce64e06635dbf038d73452098fd0163@208suo.com> From: Alex Deucher Date: Mon, 24 Jul 2023 17:59:42 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/pm: open brace '{' following struct go on the same line To: sunran001@208suo.com Cc: alexander.deucher@amd.com, 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,T_SCC_BODY_TEXT_LINE 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 24, 2023 at 5:08=E2=80=AFAM wrote: > > ERROR: open brace '{' following struct go on the same line > > Signed-off-by: Ran Sun > --- > .../amd/pm/swsmu/inc/smu_v13_0_7_pptable.h | 21 +++++++------------ > 1 file changed, 7 insertions(+), 14 deletions(-) > > diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0_7_pptable.h > b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0_7_pptable.h > index eadbe0149cae..eb694f9f556d 100644 > --- a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0_7_pptable.h > +++ b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0_7_pptable.h > @@ -41,8 +41,7 @@ > #define SMU_13_0_7_PP_OVERDRIVE_VERSION 0x83 // OverDrive 8 > Table Version 0.2 > #define SMU_13_0_7_PP_POWERSAVINGCLOCK_VERSION 0x01 // Power Saving > Clock Table Version 1.00 > > -enum SMU_13_0_7_ODFEATURE_CAP > -{ > +enum SMU_13_0_7_ODFEATURE_CAP { > SMU_13_0_7_ODCAP_GFXCLK_LIMITS =3D 0, > SMU_13_0_7_ODCAP_UCLK_LIMITS, > SMU_13_0_7_ODCAP_POWER_LIMIT, > @@ -62,8 +61,7 @@ enum SMU_13_0_7_ODFEATURE_CAP > SMU_13_0_7_ODCAP_COUNT, > }; > > -enum SMU_13_0_7_ODFEATURE_ID > -{ > +enum SMU_13_0_7_ODFEATURE_ID { > SMU_13_0_7_ODFEATURE_GFXCLK_LIMITS =3D 1 << > SMU_13_0_7_ODCAP_GFXCLK_LIMITS, //GFXCLK Limit feature > SMU_13_0_7_ODFEATURE_UCLK_LIMITS =3D 1 << > SMU_13_0_7_ODCAP_UCLK_LIMITS, //UCLK Limit feature > SMU_13_0_7_ODFEATURE_POWER_LIMIT =3D 1 << > SMU_13_0_7_ODCAP_POWER_LIMIT, //Power Limit feature > @@ -85,8 +83,7 @@ enum SMU_13_0_7_ODFEATURE_ID > > #define SMU_13_0_7_MAX_ODFEATURE 32 //Maximum Number of OD Features > > -enum SMU_13_0_7_ODSETTING_ID > -{ > +enum SMU_13_0_7_ODSETTING_ID { > SMU_13_0_7_ODSETTING_GFXCLKFMAX =3D 0, > SMU_13_0_7_ODSETTING_GFXCLKFMIN, > SMU_13_0_7_ODSETTING_UCLKFMIN, > @@ -123,8 +120,7 @@ enum SMU_13_0_7_ODSETTING_ID > }; > #define SMU_13_0_7_MAX_ODSETTING 64 //Maximum Number of ODSettings > > -enum SMU_13_0_7_PWRMODE_SETTING > -{ > +enum SMU_13_0_7_PWRMODE_SETTING { > SMU_13_0_7_PMSETTING_POWER_LIMIT_QUIET =3D 0, > SMU_13_0_7_PMSETTING_POWER_LIMIT_BALANCE, > SMU_13_0_7_PMSETTING_POWER_LIMIT_TURBO, > @@ -144,8 +140,7 @@ enum SMU_13_0_7_PWRMODE_SETTING > }; > #define SMU_13_0_7_MAX_PMSETTING 32 //Maximum Number of PowerMode > Settings > > -struct smu_13_0_7_overdrive_table > -{ > +struct smu_13_0_7_overdrive_table { > uint8_t revision; //Revision =3D > SMU_13_0_7_PP_OVERDRIVE_VERSION > uint8_t reserve[3]; //Zero filled field > reserved for future use > uint32_t feature_count; //Total number of > supported features > @@ -156,8 +151,7 @@ struct smu_13_0_7_overdrive_table > int16_t pm_setting[SMU_13_0_7_MAX_PMSETTING]; //Optimized power > mode feature settings > }; > > -enum SMU_13_0_7_PPCLOCK_ID > -{ > +enum SMU_13_0_7_PPCLOCK_ID { > SMU_13_0_7_PPCLOCK_GFXCLK =3D 0, > SMU_13_0_7_PPCLOCK_SOCCLK, > SMU_13_0_7_PPCLOCK_UCLK, > @@ -175,8 +169,7 @@ enum SMU_13_0_7_PPCLOCK_ID > }; > #define SMU_13_0_7_MAX_PPCLOCK 16 //Maximum Number of PP Clocks > > -struct smu_13_0_7_powerplay_table > -{ > +struct smu_13_0_7_powerplay_table { > struct atom_common_table_header header; //For PLUM_BONITO, > header.format_revision =3D 15, header.content_revision =3D 0 > uint8_t table_revision; //For PLUM_BONITO, > table_revision =3D 2 > uint8_t padding;