Use flexible array members in dmub/inc/dmub_cmd.h Signed-off-by: Marcelo Mendes Spessoto Junior <marcelomspessoto@xxxxxxxxx> --- 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