mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-11 20:05:22 +02:00
drm/amdgpu: silence UBSAN warning
[ Upstream commit 05d9e24ddb
]
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>
This commit is contained in:
parent
49458c0975
commit
1ba66b1211
|
@ -3551,7 +3551,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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user