Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp386042rwo; Tue, 1 Aug 2023 19:33:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlEic8ORbofzm3KMmsqH2cOPCiCVT8UbO1BLjPYeeC4JJ3Q9ok/ZmyrnqeIPBZ5yVlHQDAl/ X-Received: by 2002:a9d:7389:0:b0:6b9:cb32:f375 with SMTP id j9-20020a9d7389000000b006b9cb32f375mr14773057otk.32.1690943589265; Tue, 01 Aug 2023 19:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690943589; cv=none; d=google.com; s=arc-20160816; b=PSzZMYGIcaPLgyKf5iuTZ0XOpNr0MMjqla1eXxISwMmJA32KSEvqx6zpmyePe7cB7I n+4q2e3Lcz6HljqqN3AOtZtAgBuCYH8ZUKsoyfURTJ2h4WfF0LUB5OFX+hh69xK1FxUn rSSEFTjVOFUtc7LxWl7i9zAsdJ5HJqfZd5bSQEvt8tbt6PquwoAa7FYizzMblodBshEk MINxTDBqE/A9y7yCKnl5kfQbyQhbaaNWH7sHd8ni7Uu3R2CssRhdjgsnfjHEg23SujF0 zpY/tC+AxhUnBPOYyX7eKkexfvjERf1mqxOG/wQ7tDXpVThwaU7NuN5RdwAKPmv7dUvh Wwjw== 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=iKQkDlxX+17TGPSZVkUb2XSA7C4/S0D4gewdtaZxf3M=; fh=M7zDVNG5wYj+Ni7TE5shUh1U8LRNWB+keJIKRth6hag=; b=EjVgdCXm0Z8t17tWgUHY97YHRyM7J24A0ERCWD5YhiiRN8JsCS2ywp9K5hBSSLzXwv /p21Vm1gMrs0u3f/t6FTHuzv5m2BnS4Uc7lbXXIP3BvW2PXmQZFjzfBkvbrX6lzvsJV8 B4jushDuhd3II2lmiu+J4co485vKApJz+7gwibfAsGPaAD5Lb4jxbGY/lIzpYO1YzjPF xEqWw141JaoKHz6xHhjdXMwbaiWunLCc0JlBrW5+4pfD8ne5OIEGRmBMaqn9FzsE053J sR4fNpPe0angzZYWz3ZOz1W84GYxNFHsdJkUHgDt85VmNc5dQmROpvwuQEY57uk1caew Rh4Q== 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 m18-20020a63f612000000b0056378bcb15fsi470855pgh.503.2023.08.01.19.32.56; Tue, 01 Aug 2023 19:33:09 -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 S230484AbjHBCDX (ORCPT + 99 others); Tue, 1 Aug 2023 22:03:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230064AbjHBCDW (ORCPT ); Tue, 1 Aug 2023 22:03:22 -0400 Received: from out28-134.mail.aliyun.com (out28-134.mail.aliyun.com [115.124.28.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25A9E212D for ; Tue, 1 Aug 2023 19:03:20 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.4950177|-1;CH=blue;DM=|OVERLOAD|false|;DS=CONTINUE|ham_alarm|0.0492171-0.00117622-0.949607;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_---.U6KTuiI_1690941793; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U6KTuiI_1690941793) by smtp.aliyun-inc.com; Wed, 02 Aug 2023 10:03:15 +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 smu8_smumgr.h Date: Wed, 2 Aug 2023 02:03:12 +0000 Message-Id: <20230802020312.9233-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_H4,RCVD_IN_MSPIKE_WL, 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: Use C99 flexible arrays Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/powerplay/smumgr/smu8_smumgr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/smu8_smumgr.h b/drivers/gpu/drm/amd/pm/powerplay/smumgr/smu8_smumgr.h index c7b61222d258..475ffcf743d2 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/smu8_smumgr.h +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/smu8_smumgr.h @@ -73,7 +73,7 @@ struct smu8_register_index_data_pair { struct smu8_ih_meta_data { uint32_t command; - struct smu8_register_index_data_pair register_index_value_pair[1]; + struct smu8_register_index_data_pair register_index_value_pair[0]; }; struct smu8_smumgr { -- 2.17.1