summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-07-12 04:10:47 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-07-12 04:10:47 +0000
commit91028d1aa5d31a60d98c798f9244a19fe8e34915 (patch)
tree5137a6f20cdcd9cbfa550c1b495f79eac19227bc
parentd4c57bbdb617ae00433ceddc5f40c852e4f8e676 (diff)
drm/amdgpu: silence UBSAN warning
From Alex Deucher 1ba66b121100862fc208848264821a788a79317f in linux-6.6.y/6.6.39 05d9e24ddb15160164ba6e917a88c00907dc2434 in mainline linux
-rw-r--r--sys/dev/pci/drm/amd/include/atomfirmware.h2
1 files changed, 1 insertions, 1 deletions
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