Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3254336rwb; Mon, 7 Aug 2023 10:24:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVRkToY+JvhfhQb4Rar2oj3aF6M5zojCvIUVun484ZohcWShAFnh+7yxDcHMcuK4+MLW8o X-Received: by 2002:a05:6a21:7906:b0:140:6a7b:78bd with SMTP id bg6-20020a056a21790600b001406a7b78bdmr5539252pzc.46.1691429064003; Mon, 07 Aug 2023 10:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691429063; cv=none; d=google.com; s=arc-20160816; b=hqe0N9sRZmdOWtya7WBAGmbGYgNCwQcocDFiHFXLvETjnUmrH7qsCZcsz/IAVOstKu rZsGb05rvAjBOUlXEmraDwdIVW6WoSkdny4z8e3mk6ZbKn68/vZPdiptvPpdxUF+qytD NqIGrkNuVnpX3F5LttbuIYsHKEJHewutLGKyxfh8+GiqJgtP1/q1LxIuDDpgf8JM6+Ya /AWxpwA4pZ4t8Oz0MFxL9RS2EtB2h1opqSRX9KDVDUpadm1R50I8hAgiVd3PvR4Fiigy 8wq4KGtr15Z/a5CvWLrNDIJ1T86efUJ10r5Vvtr42GwSL14qfyjB5myONSy/ftYoqx4l pRkQ== 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=7ax9C43p8yvCgXdr8o1/JSyuVrQ/jKmhK3V7gAOikHI=; fh=YwR8hmjC2QSif+72cT3/sIS32/1FMEJSAUJ+j+OuTzU=; b=xNxq17NIz4jwYB+0ZhMiEVm1u+lcu6CadNH0fCsr10OwsUMFB7gAHabjfyeTtHXrvT HzxBGPTlxdIc7q7c/TrU8sGhwJQ7vyWNoFQCnE7AGoSebG/sltXKPhLhj5sVKNIBvBAe UOvekSajn5+PAT97T6w4teX2t6eCoBJpLm3OwAaDhzDxxx5whC5pzmZSgp16EcII6JmN tERY1V+aPB9c2IuEkRmQ8zpa3J43cBAKdmh1hkuq2TnwFBKxA94LIttN66nRyjP3pxg6 gDYrUrtIzghfGC7I+AjN+XcH0y7hvDF5363cQPn9DP5YevHaYzt0N+t/xI/ZZdXT4GXj j4kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=N+jfvJK8; 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 n25-20020a635c59000000b0055ba60a3301si5633716pgm.295.2023.08.07.10.24.11; Mon, 07 Aug 2023 10:24:23 -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=N+jfvJK8; 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 S230388AbjHGQ7t (ORCPT + 99 others); Mon, 7 Aug 2023 12:59:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229952AbjHGQ7s (ORCPT ); Mon, 7 Aug 2023 12:59:48 -0400 Received: from mail-oa1-x2f.google.com (mail-oa1-x2f.google.com [IPv6:2001:4860:4864:20::2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE1C099 for ; Mon, 7 Aug 2023 09:59:47 -0700 (PDT) Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-1bba254a7d4so3704420fac.2 for ; Mon, 07 Aug 2023 09:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691427587; x=1692032387; 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=7ax9C43p8yvCgXdr8o1/JSyuVrQ/jKmhK3V7gAOikHI=; b=N+jfvJK8Hv+xuffyYqQQ/xDO4j1Pib9L9fTUxisONol4F/95bG9aAb0ruUDAkLphce KYdoIC61zE4e2iWAgT5gEoodXPh0XsnBAqqkJHutbIv0b4nsozjUPKR2bod1hdYflDi+ ijg/gTRvb7xF8+8thNNf4ZxccNzUfCsuCmWPv/jVzMHLhI3gk1xTs45d8Nl/tb8GNDCH e/W9Zhpp1On2fZmRJ2slgL/B1Yij7thbKfK+9JOyCMHl73Xmm82vAfVtpBCsVEbg/+5U o5Oc1wvySZyqwxkGMStRNlivbzpYheyzahPCvDPq5VAqULiNQGAeGc61bP66lF1Tzf5f fT1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691427587; x=1692032387; 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=7ax9C43p8yvCgXdr8o1/JSyuVrQ/jKmhK3V7gAOikHI=; b=LfSCJ+7Mhztb0anY5AcYnlgIxe5lBXyvRkq9h32dR0+C8IihMGcWlRcV9ImM6JNiFt GvVo24eMD9GABrhzK9ZSrxZQGFG7tu+WxUH4WnQqzoUlX3+v8Rmz19k5gCEULPU/swZB sZ8tI2AEXz2s6qJvHOaB49XjXY7zXb25lUB2zSnB/RoXCm380yLzEGfhZbETIbKQUlJv PSW5gCYu2z8faJtKruHTgfhYzJrKKlsWt92tz4RXfKNtrKl/d1aJe7/gR8ax6RHm3EtQ ReX2Jw6KcxHCWoJ2TJ3F62Uy6xkUJNdnsejmz7CsbeXF0Q0B1TueWDrZaDP8BX6jPD/B SADA== X-Gm-Message-State: AOJu0YyYRVoLIAoQ4thJahPLbS8mg9Qocc+q/ofhYCNN+2iKgSI9Iope /AY6qMSsuiasUxLV0r//pbNg0/COiQvZAi2AbVI= X-Received: by 2002:a05:6870:fbaa:b0:1b4:7191:6d62 with SMTP id kv42-20020a056870fbaa00b001b471916d62mr11720054oab.35.1691427587021; Mon, 07 Aug 2023 09:59:47 -0700 (PDT) MIME-Version: 1.0 References: <20230802014800.8945-1-sunran001@208suo.com> In-Reply-To: <20230802014800.8945-1-sunran001@208suo.com> From: Alex Deucher Date: Mon, 7 Aug 2023 12:59:36 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/pm: Clean up errors in hwmgr.h To: Ran Sun 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_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 9:48=E2=80=AFPM Ran Sun wrote= : > > Fix the following errors reported by checkpatch: > > ERROR: open brace '{' following struct go on the same line > ERROR: Use C99 flexible arrays > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/pm/powerplay/inc/hwmgr.h | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/drivers/gpu/drm/amd/pm/powerplay/inc/hwmgr.h b/drivers/gpu/d= rm/amd/pm/powerplay/inc/hwmgr.h > index 612d66aeaab9..81650727a5de 100644 > --- a/drivers/gpu/drm/amd/pm/powerplay/inc/hwmgr.h > +++ b/drivers/gpu/drm/amd/pm/powerplay/inc/hwmgr.h > @@ -190,8 +190,7 @@ struct phm_vce_clock_voltage_dependency_table { > }; > > > -enum SMU_ASIC_RESET_MODE > -{ > +enum SMU_ASIC_RESET_MODE { > SMU_ASIC_RESET_MODE_0, > SMU_ASIC_RESET_MODE_1, > SMU_ASIC_RESET_MODE_2, > @@ -516,7 +515,7 @@ struct phm_vq_budgeting_record { > > struct phm_vq_budgeting_table { > uint8_t numEntries; > - struct phm_vq_budgeting_record entries[1]; > + struct phm_vq_budgeting_record entries[0]; > }; > > struct phm_clock_and_voltage_limits { > @@ -607,8 +606,7 @@ struct phm_ppt_v2_information { > uint8_t uc_dcef_dpm_voltage_mode; > }; > > -struct phm_ppt_v3_information > -{ > +struct phm_ppt_v3_information { > uint8_t uc_thermal_controller_type; > > uint16_t us_small_power_limit1; > -- > 2.17.1 >