Skip to content

Commit fccdf39

Browse files
alexdeuchergregkh
authored andcommitted
drm/amdgpu: silence UBSAN warning
[ Upstream commit 05d9e24 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 7fd41a2 commit fccdf39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/include/atomfirmware.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3583,7 +3583,7 @@ struct atom_gpio_voltage_object_v4
35833583
uint8_t phase_delay_us; // phase delay in unit of micro second
35843584
uint8_t reserved;
35853585
uint32_t gpio_mask_val; // GPIO Mask value
3586-
struct atom_voltage_gpio_map_lut voltage_gpio_lut[1];
3586+
struct atom_voltage_gpio_map_lut voltage_gpio_lut[] __counted_by(gpio_entry_num);
35873587
};
35883588

35893589
struct atom_svid2_voltage_object_v4

0 commit comments

Comments
 (0)