From nobody Sun Feb 8 10:03:38 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 852CAC04A94 for ; Wed, 2 Aug 2023 06:29:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232005AbjHBG3e (ORCPT ); Wed, 2 Aug 2023 02:29:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbjHBG3a (ORCPT ); Wed, 2 Aug 2023 02:29:30 -0400 Received: from out28-73.mail.aliyun.com (out28-73.mail.aliyun.com [115.124.28.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C14026BA for ; Tue, 1 Aug 2023 23:29:29 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.4821605|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_alarm|0.0156286-0.000344936-0.984026;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047212;MF=sunran001@208suo.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.U6XgVxA_1690957761; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U6XgVxA_1690957761) by smtp.aliyun-inc.com; Wed, 02 Aug 2023 14:29:23 +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/display: Clean up errors in dmub_cmd.h Date: Wed, 2 Aug 2023 06:29:20 +0000 Message-Id: <20230802062920.11513-1-sunran001@208suo.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Fix the following errors reported by checkpatch: ERROR: Use C99 flexible arrays Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h b/drivers/gpu/= drm/amd/display/dmub/inc/dmub_cmd.h index adde1d84d773..b64740977fc8 100644 --- a/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h +++ b/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h @@ -1165,7 +1165,7 @@ struct dmub_cmd_fw_assisted_mclk_switch_pipe_data_v2 { uint16_t vtotal; uint16_t htotal; uint8_t vblank_pipe_index; - uint8_t padding[1]; + uint8_t padding[]; struct { uint8_t drr_in_use; uint8_t drr_window_size_ms; // Indicates largest VMIN/VMAX adjustment = per frame @@ -3056,7 +3056,7 @@ struct dmub_cmd_abm_set_pwm_frac_data { /** * Explicit padding to 4 byte boundary. */ - uint8_t pad[2]; + uint8_t pad[]; }; =20 /** --=20 2.17.1