diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2024-05-16 15:51:26 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-05-29 23:02:41 +0200 |
commit | 05d9e24ddb15160164ba6e917a88c00907dc2434 (patch) | |
tree | 23c6aa506250e83447b8f589bc125fbff4f90de4 /drivers/gpu | |
parent | drm/amdgpu: Adjust logic in amdgpu_device_partner_bandwidth() (diff) | |
download | linux-05d9e24ddb15160164ba6e917a88c00907dc2434.tar.xz linux-05d9e24ddb15160164ba6e917a88c00907dc2434.zip |
drm/amdgpu: silence UBSAN warning
Convert a variable sized array from [1] to [].
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/include/atomfirmware.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/include/atomfirmware.h b/drivers/gpu/drm/amd/include/atomfirmware.h index 1acb2d2c5597..571691837200 100644 --- a/drivers/gpu/drm/amd/include/atomfirmware.h +++ b/drivers/gpu/drm/amd/include/atomfirmware.h @@ -3583,7 +3583,7 @@ struct atom_gpio_voltage_object_v4 uint8_t phase_delay_us; // phase delay in unit of micro second uint8_t reserved; uint32_t gpio_mask_val; // GPIO Mask value - struct atom_voltage_gpio_map_lut voltage_gpio_lut[1]; + struct atom_voltage_gpio_map_lut voltage_gpio_lut[] __counted_by(gpio_entry_num); }; struct atom_svid2_voltage_object_v4 |