From: Marcelo Mendes Spessoto Junior <marcelomspessoto@gmail.com>
To: harry.wentland@amd.com, sunpeng.li@amd.com,
Rodrigo.Siqueira@amd.com, alexander.deucher@amd.com,
christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com,
daniel@ffwll.ch
Cc: Marcelo Mendes Spessoto Junior <marcelomspessoto@gmail.com>,
amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: [PATCH 1/3] drm/amd/display: clean codestyle errors
Date: Wed, 14 Feb 2024 19:42:15 -0300 [thread overview]
Message-ID: <20240214224217.15514-2-marcelomspessoto@gmail.com> (raw)
In-Reply-To: <20240214224217.15514-1-marcelomspessoto@gmail.com>
Use flexible array members in dmub/inc/dmub_cmd.h
Signed-off-by: Marcelo Mendes Spessoto Junior <marcelomspessoto@gmail.com>
---
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 6 +++---
1 file changed, 3 insertions(+), 3 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 a529e369b..d748bedda 100644
--- a/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
+++ b/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
@@ -1588,7 +1588,7 @@ struct dmub_rb_cmd_idle_opt_dcn_restore {
*/
struct dmub_dcn_notify_idle_cntl_data {
uint8_t driver_idle;
- uint8_t pad[1];
+ uint8_t pad[];
};
/**
@@ -2421,7 +2421,7 @@ struct dmub_cmd_psr_copy_settings_data {
/**
* @ rate_control_caps : Indicate FreeSync PSR Sink Capabilities
*/
- uint8_t rate_control_caps ;
+ uint8_t rate_control_caps;
/*
* Force PSRSU always doing full frame update
*/
@@ -3921,7 +3921,7 @@ struct dmub_cmd_abm_pause_data {
/**
* Explicit padding to 4 byte boundary.
*/
- uint8_t pad[1];
+ uint8_t pad[];
};
/**
--
2.39.2
next prev parent reply other threads:[~2024-02-15 9:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-14 22:42 [PATCH 0/3] drm/amd/display: fix codestyle for some dmub files Marcelo Mendes Spessoto Junior
2024-02-14 22:42 ` Marcelo Mendes Spessoto Junior [this message]
2024-02-14 22:42 ` [PATCH 2/3] drm/amd/display: clean codestyle error Marcelo Mendes Spessoto Junior
2024-02-14 22:42 ` [PATCH 3/3] drm/amd/display: clean codestyle errors Marcelo Mendes Spessoto Junior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240214224217.15514-2-marcelomspessoto@gmail.com \
--to=marcelomspessoto@gmail.com \
--cc=Rodrigo.Siqueira@amd.com \
--cc=Xinhui.Pan@amd.com \
--cc=airlied@gmail.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=harry.wentland@amd.com \
--cc=sunpeng.li@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox