Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp367940rwo; Tue, 1 Aug 2023 19:06:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlHFJ/3l5+IMjlOWLnc+umarDcIVXALlcdNOgAy3wvR9J9Yh4WytVC2tDKIJpsqznEWj5WrD X-Received: by 2002:a05:6512:3ee:b0:4fe:3a57:7c90 with SMTP id n14-20020a05651203ee00b004fe3a577c90mr3291681lfq.19.1690941992408; Tue, 01 Aug 2023 19:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690941992; cv=none; d=google.com; s=arc-20160816; b=HpoVix8IEr/l93cK72RC4+ujcWmUnBTc6Tblp+sifKS/ty52cr9pvXEbXo00fj335z QhphepO2oI1sknXcnNHln/fkTGYISo77ZOCurOYtVEAB7YJM/rtyDr3uMAoP2FHCwW0I D2n7ZKqiUyUhpujCKxptX6oeNPBefZ4yM2SUbZJ+Xa5aQIN90HnS2HP6JnKRtjiKVdGE ynbM3byrqxXw1B5uUkKJfsx0Eqh5H+H3Lwrl9VQlERSlsW41uZqedrzhou/8znRrGHRi Kz3j6GGeGmJlKQgZZcVrVpNyPUtCal2DlCL6nhqSrbas68aC7xqBjFqfymgOGL2iL9uJ 73pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=td4Z+2JffJM6p9KsyWToDFDGGMFGZvDA0h60/vz1yis=; fh=M7zDVNG5wYj+Ni7TE5shUh1U8LRNWB+keJIKRth6hag=; b=XEpNMXGJLPT459mnUKKfw9A1nKg3u/u8oPNnqt73wNd7HUc2+QhFJ3Gn/mF3U95TBP 4idev53cz6l3OOAssMwmvIgYpI9qbmWI9rvlxLsy4PD7PoSOBTwxurzhYxQzgrEtBdd2 Y/dwaDluhVEPqZBXAjDFOC+kh4AEpd9JtAVdphCZ58LCz2O3t/agYA8+YYdfJ5wOVRVB FfDXTCsyYGtXYVrWSa4HzXhu0ntDUxwKhfoY6YHKtmYJvgsWPqVZAO/7CShnJnbZZAzH OxtBMEtqAdK5pd2d6bEENi/Go12BntgqCmlT546fFEWw2VG6LNgMWvtiAXmuBqHj3xsQ XUHw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g17-20020a50ee11000000b00521029a8eeesi5358650eds.313.2023.08.01.19.06.07; Tue, 01 Aug 2023 19:06:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231129AbjHBBsM (ORCPT + 99 others); Tue, 1 Aug 2023 21:48:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230452AbjHBBsK (ORCPT ); Tue, 1 Aug 2023 21:48:10 -0400 Received: from out28-102.mail.aliyun.com (out28-102.mail.aliyun.com [115.124.28.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07C1FF1 for ; Tue, 1 Aug 2023 18:48:08 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.2541763|-1;CH=blue;DM=|OVERLOAD|false|;DS=CONTINUE|ham_alarm|0.0473417-0.000161502-0.952497;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047202;MF=sunran001@208suo.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.U6Jxphb_1690940881; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U6Jxphb_1690940881) by smtp.aliyun-inc.com; Wed, 02 Aug 2023 09:48:03 +0800 From: Ran Sun To: alexander.deucher@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ran Sun Subject: [PATCH] drm/amd/pm: Clean up errors in hwmgr.h Date: Wed, 2 Aug 2023 01:48:00 +0000 Message-Id: <20230802014800.8945-1-sunran001@208suo.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 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/drm/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