From 2eb7cd5d3315cb4617a4dd17fef2b855951692db Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 12 Jul 2024 04:10:46 +0000 Subject: [PATCH] drm/amdgpu: silence UBSAN warning From Alex Deucher 1ba66b121100862fc208848264821a788a79317f in linux-6.6.y/6.6.39 05d9e24ddb15160164ba6e917a88c00907dc2434 in mainline linux --- sys/dev/pci/drm/amd/include/atomfirmware.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/amd/include/atomfirmware.h b/sys/dev/pci/drm/amd/include/atomfirmware.h index 58486172523..6c8b4afa7cc 100644 --- a/sys/dev/pci/drm/amd/include/atomfirmware.h +++ b/sys/dev/pci/drm/amd/include/atomfirmware.h @@ -3551,7 +3551,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 -- 2.20.1