Commit ca0bfaad authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu: silence UBSAN warning

Convert a variable sized array from [1] to [].
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 87dfeb47
...@@ -3583,7 +3583,7 @@ struct atom_gpio_voltage_object_v4 ...@@ -3583,7 +3583,7 @@ struct atom_gpio_voltage_object_v4
uint8_t phase_delay_us; // phase delay in unit of micro second uint8_t phase_delay_us; // phase delay in unit of micro second
uint8_t reserved; uint8_t reserved;
uint32_t gpio_mask_val; // GPIO Mask value 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 struct atom_svid2_voltage_object_v4
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment